Header
Hello;
I have a question. I tried to change Column header text of DataGrid with following snippet, but
I doesn't apply. I've used ArrayList Instead of DataTable or DataSet to MappingName Property
and think the error is realated to that;
DataGridTableStyle TS = new DataGridTableStyle();
TS.MappingName = "Categories";// Categories is Filled with anArrayList
CatGrid.TableStyles.Add(TS);
CatGrid.DataSource = Cat.GetCategories();
CatGrid.TableStyles[1].GridColumnStyles[1].HeaderText = "CategoryName";
And then I got this error:
Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" string
What is the matter? How can I change Header text of DataGrid?
Is it possible without creating DataTable or use DataSet? If so How?
Many Thanks.

