Hello,
if i bind a RadGrid with a DataTable as DataSource.
There are no columns in the RadGrid only the DataSource had some.
Displaying the data works.
I have to let the user group the columns. It don't work if there are none.
GridColumnGroup colGrp =
new
GridColumnGroup();
colGrp.Name = TextBox1.Text;
colGrp.HeaderText = TextBox1.Text;
RadGrid1.MasterTableView.ColumnGroups.Add(colGrp);
RadGrid1.MasterTableView.Columns[0].ColumnGroupName = TextBox1.Text;
RadGrid1.MasterTableView.Columns[1].ColumnGroupName = TextBox1.Text;
Please take a look at the added pictures.