c# - RadGrid grid columns collection has only 1 row, no name, in ItemDataBound event. Why? -
c# - RadGrid grid columns collection has only 1 row, no name, in ItemDataBound event. Why? -
i trying execute logic in radgrid1_itemdatabound event method. need index of specific column (imageurl). in trying locate column, have tried several different methods. in cases, column collection of radgrid contains 1 column, blank name.
my code follows:
private int getcolumnindexbyname(radgrid grid, string name) { (int = 0; < grid.columns.count; i++) { if (grid.columns[i].headertext.tolower().trim() == name.tolower().trim()) { homecoming i; } } homecoming -1; } this method called above mentioned event using name of grid , column name string. why grid column collection practically empty?
c# asp.net radgrid
Comments
Post a Comment