I wish to access CheckBox control in ItemTemplate, to set or get value.
I use next code on event: ItemDataBound(...)
//-------------
e.Item.Cells[0].FindControl("CheckBox1")
//-------------
to access desired checkbox.
Is there exist some faster way to access this control then method
FindControl().
Maybe something like: e.Item.Cells[0].Controls[0], to access control
directly from index.
Thanks
Eliyahu Goldin - 19 Jul 2005 13:30 GMT
Yes, if you know the index you can use e.Item.Cells[0].Controls[i]. I am not
sure if it will affect the application performance in any way though.
Eliyahu
> I wish to access CheckBox control in ItemTemplate, to set or get value.
> I use next code on event: ItemDataBound(...)
[quoted text clipped - 9 lines]
>
> Thanks