I'm using the code from the help to create a Checkbox within my datagridview
Then I set the data souce equal to my oracle query. The first time around it's fine but when I make a change to one of the drop downs the data changes so I remove this column and readd it but it keeps adding it to the end of the grid instead of position zero like I need it to be. What is the best way around this?
Also why when I rebind to my datagridview does the checkbox still stay checked? Do I have to remove and readd the column everytime?
Thank You
GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn(); | |
checkBoxColumn.DataType = typeof(int); | |
checkBoxColumn.UniqueName = "Selected"; | |
checkBoxColumn.FieldName = "Selected"; | |
checkBoxColumn.HeaderText = ""; | |
radGVTables.MasterGridViewTemplate.Columns.Add(checkBoxColumn); |
Then I set the data souce equal to my oracle query. The first time around it's fine but when I make a change to one of the drop downs the data changes so I remove this column and readd it but it keeps adding it to the end of the grid instead of position zero like I need it to be. What is the best way around this?
Also why when I rebind to my datagridview does the checkbox still stay checked? Do I have to remove and readd the column everytime?
Thank You