set gridview editable at runtime
-
Hi, How do i make the gridview, or at least certain fields editable at runtime. I'm manually binding data to a blank datagrid. I know prdefined columns in the grid have a readonly property, but that property is gone in runtime! please help.
Regards, Tintin
-
Hi, How do i make the gridview, or at least certain fields editable at runtime. I'm manually binding data to a blank datagrid. I know prdefined columns in the grid have a readonly property, but that property is gone in runtime! please help.
Regards, Tintin
You set what controls should be used in the EditTemplate of the datagrid, in the case non-editable fields just use a label. At runtime you can set the EditItemIndex to put that row into edit mode http://www.codeproject.com/aspnet/datagriddemo.asp[^]
only two letters away from being an asset