accessing a Boundfield ID field from a gridview in order to update a table with a checkbox value.

H

hazz

given <asp:BoundField DataField="ID" SortExpression="ID" visible =
"True"></asp:BoundField>

how can I access this ID field from within a button click event. I had bound
a collection of busiess objects to the gridview and now I am trying to
figure out how to loop through the collection from within the gridview which
has upated checkbox items to update in the db.

<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" />
</ItemTemplate>

void btnUpdate_Click(object sender, EventArgs e)
{ ???

Thank you,
-Greg
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top