Hi All,
I have an entirely code-behind solution that uses AutoGenerateColumns = true. I noticed two interesting issues:
1. Alternating rows lose their itemstyle formatting. In this case I set RadGrid.ItemStyle.HorizontalAlign = HorizontalAlign.Center. Only the rows without a back-color were centered.
2. There is a zero column count in ItemDataBound when accessing the RadGrid. It is a private variable in the class.
Generating the columns manually (AutoGenerateColumns = false) does provide me with a column count and applies the ItemStyle to all rows which fixes my issue, but I would like to AutoGenerate the Columns. Any thoughts?
Thanks,
Mark
I have an entirely code-behind solution that uses AutoGenerateColumns = true. I noticed two interesting issues:
1. Alternating rows lose their itemstyle formatting. In this case I set RadGrid.ItemStyle.HorizontalAlign = HorizontalAlign.Center. Only the rows without a back-color were centered.
2. There is a zero column count in ItemDataBound when accessing the RadGrid. It is a private variable in the class.
Generating the columns manually (AutoGenerateColumns = false) does provide me with a column count and applies the ItemStyle to all rows which fixes my issue, but I would like to AutoGenerate the Columns. Any thoughts?
Thanks,
Mark