Hello
I am using the Q1 2008 build of the controls for Ajax (Prometheus) and am trying to embed a checkbox in a grid that will be used as a multiselect control. The checkbox is bound to a BIT field. I ma creating the grid programmatically.
Here is the code:
this is code in a class that inherits from "RadGrid".
The checkbox is displayed in the grid, but is not clickable. I have read in the docs "When the grid is in browser mode, or if the column is read-only, the check box is disabled. When the column is editable, the check box is enabled." But how to do that?? make it editable in line? I am not looking to bring up another form to edit the row.
Thanks!
Harold
I am using the Q1 2008 build of the controls for Ajax (Prometheus) and am trying to embed a checkbox in a grid that will be used as a multiselect control. The checkbox is bound to a BIT field. I ma creating the grid programmatically.
Here is the code:
this.DataSource = lookUpValues; | |
this.Width = 200; | |
this.MasterTableView.DataKeyNames = new string[] { "LuTableValueID" }; | |
this.AutoGenerateColumns = false; | |
GridCheckBoxColumn selectCheckbox; | |
selectCheckbox = new GridCheckBoxColumn(); | |
selectCheckbox.HeaderText = "Select"; | |
selectCheckbox.UniqueName = "selectedValue"; | |
selectCheckbox.DataField = "selectValue"; | |
this.MasterTableView.Columns.Add(selectCheckbox); | |
GridBoundColumn descColumn; | |
descColumn = new GridBoundColumn(); | |
descColumn.DataField = "Description"; | |
descColumn.HeaderText = "Description"; | |
this.MasterTableView.Columns.Add(descColumn); | |
this.ClientSettings.Selecting.AllowRowSelect = true; | |
//this.AllowMultiRowSelection = true; | |
this.DataBind(); |
The checkbox is displayed in the grid, but is not clickable. I have read in the docs "When the grid is in browser mode, or if the column is read-only, the check box is disabled. When the column is editable, the check box is enabled." But how to do that?? make it editable in line? I am not looking to bring up another form to edit the row.
Thanks!
Harold