Hi Deivaselvan,
Thank you for your response.
I can't solve the problem. Here is my code:
var query = from l in dbWork.Charges
select l;
sfDataGrid.DataSource = (IEnumerable<Data.Charge>) query.ToList();
sfDataGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
sfDataGrid.AutoExpandGroups = true;
sfDataGrid.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.Fill;
sfDataGrid.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
sfDataGrid.ShowGroupDropArea = true;
sfDataGrid.AllowFiltering = true;
sfDataGrid.AllowDeleting = false;
sfDataGrid.AllowGrouping = true;
sfDataGrid.AllowEditing = false;
sfDataGrid.AutoGenerateColumns = true;
sfDataGrid.AllowResizingColumns = true;
sfDataGrid.ShowRowHeader = true;
sfDataGrid.EnableDataVirtualization = true;
sfDataGrid.FilterPopupMode = Syncfusion.WinForms.GridCommon.FilterPopupMode.Both;
sfDataGrid.GroupCaptionTextFormat = "{Key} : {ItemsCount}";
sfDataGrid.Style.FreezePaneLineStyle.Color = System.Drawing.Color.BlueViolet;
sfDataGrid.Style.FreezePaneLineStyle.Weight = 2;
sfDataGrid.SelectionMode = Syncfusion.WinForms.DataGrid.Enums.GridSelectionMode.Multiple;
sfDataGrid.SelectionUnit = Syncfusion.WinForms.DataGrid.Enums.SelectionUnit.Row;
sfDataGrid.NavigationMode = Syncfusion.WinForms.DataGrid.Enums.NavigationMode.Cell;
Regards