I found some code that extends the standard datagrid view to allow rows or columns to be dragged and droped within the grid
the code can be found at :-http://www.danielsoper .com/programming/DataGridViewDra gDropRowsColumn s.aspx
Has any one else used/had expereience of using this control?
I drop the new grid object onto the form and add the DataSource and and DataMember, all works fine. What I can't seem to do is rename the columns! If I rename Column1 to Name when I come out of the properties it reverts to being called Column1..
I can do it via code
When I run my form the object seem to append a number of blank columns to the begining of my data.
Any help would be appreciated
the code can be found at :-http://www.danielsoper .com/programming/DataGridViewDra gDropRowsColumn s.aspx
Has any one else used/had expereience of using this control?
I drop the new grid object onto the form and add the DataSource and and DataMember, all works fine. What I can't seem to do is rename the columns! If I rename Column1 to Name when I come out of the properties it reverts to being called Column1..
I can do it via code
Code:
MyObj.Columns[0].HeaderText = "Name";
Any help would be appreciated
Comment