I'm currently using the demo controls to develop my application.
I have 3 combobox the first is populated on load and the next one is populated based on the first and the third based on the selection in the second drop down.
One the user selects the first 2 combobox selections I query my oracle db and set the datasource of my first grid to that data table.
If the user changes the 3rd combbox then I filter the data in my datatable and rebind. My problem on the rebinding is the issue of my checkbox column. The checkboxes do not clear out when I rebind. I've tried deleting the column and readding it but then my data doesn't bind all I see is the checkbox column.
What is suppose to happen when a user selects a checkbox is the second datagrid is populated based on their selection. They can check multiple rows. The second data grid will also have a checkbox column that I will use to generate a report.
My main problem is when I have to clear my grids and rebind the checkbox column doesn't seem to work correctly.
Please any help would be greatly apprciated.
This is my code to remove and readd the checkbox column to my first grid. Which isn't working.
Anything that can point me in the right direction would be greatly appreciated. I'm on a time constraint and am trying to verify I can do all this with the telerik controls.
I have 3 combobox the first is populated on load and the next one is populated based on the first and the third based on the selection in the second drop down.
One the user selects the first 2 combobox selections I query my oracle db and set the datasource of my first grid to that data table.
If the user changes the 3rd combbox then I filter the data in my datatable and rebind. My problem on the rebinding is the issue of my checkbox column. The checkboxes do not clear out when I rebind. I've tried deleting the column and readding it but then my data doesn't bind all I see is the checkbox column.
What is suppose to happen when a user selects a checkbox is the second datagrid is populated based on their selection. They can check multiple rows. The second data grid will also have a checkbox column that I will use to generate a report.
My main problem is when I have to clear my grids and rebind the checkbox column doesn't seem to work correctly.
Please any help would be greatly apprciated.
This is my code to remove and readd the checkbox column to my first grid. Which isn't working.
GridViewCheckBoxColumn chkCol = radGridView1.MasterGridViewTemplate.Columns["Selected"] as GridViewCheckBoxColumn; | |
if (chkCol != null) | |
{ | |
radGridView1.MasterGridViewTemplate.Columns.Remove(chkCol); | |
GridViewCheckBoxColumn chkCol = new GridViewCheckBoxColumn(); | |
chkCol.DataType = typeof(int); | |
chkCol.UniqueName = "Selected"; | |
chkCol.FieldName = "Selected"; | |
chkCol.HeaderText = ""; | |
radGridView1.MasterGridViewTemplate.Columns.Add(chkCol); | |
} |
Anything that can point me in the right direction would be greatly appreciated. I'm on a time constraint and am trying to verify I can do all this with the telerik controls.