Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
Getting to the control in a templated column
posted

I have a link button inside a templated column that I need to change the visibility based on the data. I've tried:

protected void gridTracking_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)

{

TemplatedColumn
col = (TemplatedColumn)e.Row.Cells.FromKey("Actions").Column;

CellItem ci = (CellItem)col.CellItems[0];

LinkButton archive = (LinkButton)ci.FindControl("btnArchiveTrackForm");

but archive always points to the SAME linkbutton... the one in the first row. Am I missing something? thanks!