I've checked out some of the other posts and examples to accomplish this, but I'm not sure if I'm on the right track.
Here's what I'm trying to do:
Basic grid with 3 columns and multiple rows (here's the layout I'm trying to create, minus the RSS icon and "voice mail") - http://tmeister.iweb.bsu.edu/bsumessagecenter/
By default, the entire grid should be editable on load (except for the category name). The user would then check the boxes for the category he/she would like to subscribe to. On clicking the "update preferences" button, I would (on the server-side) process each box and insert that selection in the database.
How can I use a standard button (asp:Button) to loop through each row and access the items within that row to detemine whether or not the box is checked?
I tried the <radG:GridClientSelectColumn ItemStyle-Width="40" /> but that didn't exactly meet my needs (couldn't have discrete selections per row). I've also tried in the event handler for the button looping through each item:
Here's what I'm trying to do:
Basic grid with 3 columns and multiple rows (here's the layout I'm trying to create, minus the RSS icon and "voice mail") - http://tmeister.iweb.bsu.edu/bsumessagecenter/
By default, the entire grid should be editable on load (except for the category name). The user would then check the boxes for the category he/she would like to subscribe to. On clicking the "update preferences" button, I would (on the server-side) process each box and insert that selection in the database.
How can I use a standard button (asp:Button) to loop through each row and access the items within that row to detemine whether or not the box is checked?
I tried the <radG:GridClientSelectColumn ItemStyle-Width="40" /> but that didn't exactly meet my needs (couldn't have discrete selections per row). I've also tried in the event handler for the button looping through each item:
foreach (GridItem Item in rgCategorySubscriptionList.MasterTableView.OwnerGrid.Items)
{
if (Item.Selected)
{
// test to see if the item is selected
Response.Write(Convert.ToInt32(Item.OwnerTableView.DataKeyValues[Item.ItemIndex]["CategoryID"].ToString()));
}
}
But I'm not sure that I'm getting the info that I need with this...
Any suggestions would be greatly appreciated!
Thank you,
Kyle Parker