D
davidfox789
I am new at this.. probably not proficient enough to even consider
myself a Newbie yet.
I have a DataGrid with Template columns. After the user edits a field
in the DataGrid and presses Update, the UpdateCommand code executes no
problem. However...
Normally I read the newly edited contents of a cell thusly:
Dim tb As TextBox
tb = CType(e.Item.Cells(1).Controls(0), TextBox)
However! A DataGrid I created today will only work if I reference
Controls(1) rather than Controls(0):
Dim tb As TextBox
tb = CType(e.Item.Cells(1).Controls(1), TextBox)
Could someone please shed some light on how an attribute can "move
around" inside a control, in this case from position 0 to position 1?
I don't want them moving around after I'm done.
myself a Newbie yet.
I have a DataGrid with Template columns. After the user edits a field
in the DataGrid and presses Update, the UpdateCommand code executes no
problem. However...
Normally I read the newly edited contents of a cell thusly:
Dim tb As TextBox
tb = CType(e.Item.Cells(1).Controls(0), TextBox)
However! A DataGrid I created today will only work if I reference
Controls(1) rather than Controls(0):
Dim tb As TextBox
tb = CType(e.Item.Cells(1).Controls(1), TextBox)
Could someone please shed some light on how an attribute can "move
around" inside a control, in this case from position 0 to position 1?
I don't want them moving around after I'm done.