H
hazz
using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, "Select
Column_Name,Include_in_Report From ColumnsToSelect"))
{
this.GridViewColumns.DataSource = dataReader;
this.GridViewColumns.DataBind()
Include_in_Report is a bit datavalue and turns into a checkbox on page load.
Great!
But I want it to be writeable. I noticed on 'view source' there is a
property automatically generated disabled = "disabled" Where does that come
from? How can I automagically have all the boxes writeable? I want to be
able to save the values and update back to the same table I just retrieved
them from. Thank you. -Greg
<tr>
<td>CO_NUMBER</td><td><span disabled="disabled"
title="Include_in_Report"><input id="GridViewColumns_ctl02_ctl00"
type="checkbox" name="GridViewColumns$ctl02$ctl00" disabled="disabled"
/></span></td>
</tr>
Column_Name,Include_in_Report From ColumnsToSelect"))
{
this.GridViewColumns.DataSource = dataReader;
this.GridViewColumns.DataBind()
Include_in_Report is a bit datavalue and turns into a checkbox on page load.
Great!
But I want it to be writeable. I noticed on 'view source' there is a
property automatically generated disabled = "disabled" Where does that come
from? How can I automagically have all the boxes writeable? I want to be
able to save the values and update back to the same table I just retrieved
them from. Thank you. -Greg
<tr>
<td>CO_NUMBER</td><td><span disabled="disabled"
title="Include_in_Report"><input id="GridViewColumns_ctl02_ctl00"
type="checkbox" name="GridViewColumns$ctl02$ctl00" disabled="disabled"
/></span></td>
</tr>