I know that I can use e.Row.Items.Item(7).Value = 1 to see if the value in column 7 is a 1 within the grid.InitializeRow code...but is there any way to refer to the column by it's name rather than the column number? The problem is that I show different columns depending on the security level of the user and the column that I need to check will not always be the 7th column.Any suggestions?
You can refer to the column by Key in the InitializeRow event using
e.Row.Items.FindItemByKey("ColumnKey")