GridView - Get cell by name?
Posted on 2006-07-21
In my GridView I have a column, example:
<asp:hyperlinkfield headertext="Cheese" />
I've got a handler on the RowDataBound event.
Currently to access that cell I use:
I'm convinced there is some way using the framework to access that cell by something other than the Integer index, which is very messy.
I'd much rather iterate through somehow, find the cell based on the "headertext" property = "Cheese"
Can it be done?