C
cjburkha
I have a datagrid with some bound collumns (<asp:BoundColumn)
I would like to reference these columns and their cells(data) in code.
I have found this way, and it works ok.
Dim startDateString As String = e.Item.Cells(6).Text
I don't like this --------------------------------------------^
My problem is, if I change the order of my bound columns, or decide I
want to remove one, now I have to change all thoes hard coded indexes.
Having the row(e.item) in the above example, how I can find and
refernce a particular cell without using a hardcoded index?
Any tips/links/help is appriciated.
CJB
I would like to reference these columns and their cells(data) in code.
I have found this way, and it works ok.
Dim startDateString As String = e.Item.Cells(6).Text
I don't like this --------------------------------------------^
My problem is, if I change the order of my bound columns, or decide I
want to remove one, now I have to change all thoes hard coded indexes.
Having the row(e.item) in the above example, how I can find and
refernce a particular cell without using a hardcoded index?
Any tips/links/help is appriciated.
CJB