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,
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 392.9K pointsPosted Jul 2, 2007, 6:36 AM EDT
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