___________________
I have pulled data from SQL Server into a datagrid control.
Two of the columns are checkbox fields. But during run-time,
I am unable to click either of those columns to enter a check.
Are they disabled by default.
I need to allow the user to indicate whether they approve or deny a request; and then, I shall be able to update the corresponding columns in the originating database table.
What must I do to solve this problem?
I added these two columns to the existing ones in run-time:
-----
CODE
Dim myCol1 As New DataColumn("Approved")
Dim myCol2 As New DataColumn("Denied")
myCol1.DataType = System.Type.GetType("System.Boolean")
myCol2.DataType = System.Type.GetType("System.Boolean")
myDataSet.Tables(0).Columns.Add(myCol1...
myDataSet.Tables(0).Columns.Add(myCol2...
myDataSet.Tables(0).AcceptChanges()
-----
The datagrid control's Enabled and AutoPostBack properties are set to True.
The problem is not with the two columns that I added during run-time, as the same situation occurs when there are checkbox fields that originate from the datasource, and are automatically displayed in the datagrid control.
______________________
This post has been edited by jayman9: 25 Feb, 2008 - 01:09 AM