i was using datagrid for WPF, and generate the datagrid and add to StackPanel in window dynamiclly,
and i do not have a xaml side code of the control,
my code was like :
DataGridControl dataGrid = new DataGridControl();
dataGrid.AutoCreateColumns = false;
dataGrid.ReadOnly = true;
dataGrid.AllowDrag = true;
dataTable.TableName = dataTable.TableName;
dataGrid.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
dataGrid.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
dataGrid.Background = DataGridControlBackgroundBrushes.ElementalSilver;
dataGrid.Margin = new Thickness(0, 5, 0, 5);
dataGrid.FontFamily = new FontFamily("Arial");
dataGrid.FontSize = 10;
and then set each datarow and each cell data.
finally, i got a "Drag a column header here to group by that column" on top of the table, how can i remove this line?
and also, how can i show a table name?