I have:
and it works great as long as I don't add a column in before this one. If I do then this is off by one. Is there a way to do this by name. I am using a datagrid, asp.net 1.1
The items don't have ids so how would I get a hold of the correct one.
I want to get a handle on a bound column at the selected index.
Code:
this.myGrid.Items[e.Item.ItemIndex].Cells[4].Text
and it works great as long as I don't add a column in before this one. If I do then this is off by one. Is there a way to do this by name. I am using a datagrid, asp.net 1.1
The items don't have ids so how would I get a hold of the correct one.
I want to get a handle on a bound column at the selected index.