how to make checkbox writable on Gridview initializatio?

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top