Adding & removing Column in Datagrid
Can someone please help me in solving the following problem regarding datagrid...
If i right click on the column header of a datagrid a pop up menu should come with add and remove option. On clicking add a new column should be added to the grid and with remove option the corresponding column should be removed. On addition or removal of a column the data already present in the grid should not be affected.
Plz help me out..
Regards Deepjyoti,
Mahesh ChandPosted Jul 2, 2007, 10:36 AM
OR
=========
Otherwise, you will have to use DataGridTableStyles. Here is an example how to get a column and do something with it:
http://www.c-sharpcorner.com/UploadFile/mahesh/DataGridCustomizationPart-II11242005045146AM/DataGridCustomizationPart-II.aspx