I have gridView with columns (ItemTemplate/BoundField e.t.c) i need to get ID'd of each column, i am able to get HeaderText as shown below :
foreach (TableCell objCell in e.Row.Cells) { if (objCell is DataControlFieldHeaderCell) { string HEADERTEXT=objCell.Text; } }
but how do i get ColumnID as there are different type of Template Fields.