Hi,
I think I am close to finding an answer on this - but it is so far elluding me. I have an app that supports drag to group. In my app, I can canfigure it to have custom CssClass for a column header as well as for individual row and alt row cells, but I only know at runtime (not at compile time) what the column names will be. It is all fine for displaying without grouping - my column headers and column rows and alt rows get the right classes on them (both can get set in PreRender, except if I want a special class on a row or alt row cell based on the cell content value in which case I do it in ItemDataBound.)
However, when Grouping, I find that I seem also to have a need to separately set the CssClass for the column in the GridGroupheaderItem. In order to know what CssClass i want to set, i need to be able to find the right column cell in the GridGroupColumnItem based on column name. But it is not apparent to me how I can get at the column names for that in ItemDataBound (which seems to me to be the right event to do it in - since I do get that event called for these.)
Any ideas on how to identify the right cell by column name for the GridGroupheaderItem in the ItemDataBound event?
Thanks,
Ed Hinton
I think I am close to finding an answer on this - but it is so far elluding me. I have an app that supports drag to group. In my app, I can canfigure it to have custom CssClass for a column header as well as for individual row and alt row cells, but I only know at runtime (not at compile time) what the column names will be. It is all fine for displaying without grouping - my column headers and column rows and alt rows get the right classes on them (both can get set in PreRender, except if I want a special class on a row or alt row cell based on the cell content value in which case I do it in ItemDataBound.)
However, when Grouping, I find that I seem also to have a need to separately set the CssClass for the column in the GridGroupheaderItem. In order to know what CssClass i want to set, i need to be able to find the right column cell in the GridGroupColumnItem based on column name. But it is not apparent to me how I can get at the column names for that in ItemDataBound (which seems to me to be the right event to do it in - since I do get that event called for these.)
Any ideas on how to identify the right cell by column name for the GridGroupheaderItem in the ItemDataBound event?
Thanks,
Ed Hinton