Amanda
December 15th, 2004, 02:10 AM
Hey there!
I'm wondering if someone can help me - I'm trying to implement a checkbox in a datagrid and I've written the following code to locate which checkbox has been checked:
gridSelections.AppendFormat("The checkbox for {0} was selected <br>", DataGrid1.DataKeys(DataGrid1Item.ItemIndex).ToString());
The compiler keeps throwing the following the error:
System.Web.UI.WebControls.BaseDataList.DataKeys' denotes a 'property' where a 'method' was expected
I'm wondering if someone knows how to solve the above problem?
Thanx
I'm wondering if someone can help me - I'm trying to implement a checkbox in a datagrid and I've written the following code to locate which checkbox has been checked:
gridSelections.AppendFormat("The checkbox for {0} was selected <br>", DataGrid1.DataKeys(DataGrid1Item.ItemIndex).ToString());
The compiler keeps throwing the following the error:
System.Web.UI.WebControls.BaseDataList.DataKeys' denotes a 'property' where a 'method' was expected
I'm wondering if someone knows how to solve the above problem?
Thanx