c# - RadGrid grid columns collection has only 1 row, no name, in ItemDataBound event. Why? -


I'm trying to execute some arguments in the RadGrid1_ItemDataBound event method. (Image URL) needs to be indexed. In trying to find this column, I have tried many different ways. In all cases, the column collection of RadGrid contains 1 column with an empty name.

My code is as follows:

  GetColumnIndexByName (RadGrid Grid, String Name) Private Ink {for (int i = 0; i & lt; grid.Column.Count ; I ++) {if (grid.Columns [i] .HeaderText.ToLower (.) Trim () == Name toLower (). Trim ()) {return i; }} Return -1; }  

This method is called from the above phenomenon in the name of the grid and column name string. Why is grid column collection practically empty?


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -