Dynamically Added CheckBox Column is Disabled in GridView
- by Mark Maslar
I'm dynamically adding a Boolean column to a DataSet. The DataSet's table is the DataSource for a GridView, which AutoGenerates the columns.
Issue: The checkboxes for this dynamically generated column are all disabled. How can I enable them?
ds.Tables["Transactions"].Columns.Add("Retry", typeof(System.Boolean));
ds.Tables["Transactions"].Columns["Retry"].ReadOnly = false;
In other words, how can I control how GridView generates the CheckBoxes for a Boolean field? (And why does setting ReadOnly to False have no effect?)
Thanks!