Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# How to create the single group for null and empty value in Windows Forms DataGrid(SfDataGrid)?
# How to create the single group for null and empty value in Windows Forms DataGrid(SfDataGrid)

## About the sample
By default, empty and null values are created the separate groups in SfDataGrid. You can able to create the single group for empty and null value by using [KeySelector](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GroupColumnDescription.html?_ga=2.117674313.1315379768.1669285137-766490130.1650530957&_gl=1*tvmfv5*_ga*NzY2NDkwMTMwLjE2NTA1MzA5NTc.*_ga_WC4JKKPHH0*MTY2OTM3NjkwOS4zMTQuMS4xNjY5Mzc5ODA2LjAuMC4w#Syncfusion_WinForms_DataGrid_GroupColumnDescription_KeySelector) in [GroupColumnDescription](https://help.syncfusion.com/cr/Syncfusion.WinForms.DataGrid.GroupColumnDescription.html?_ga=2.117674313.1315379768.1669285137-766490130.1650530957&_gl=1*tvmfv5*_ga*NzY2NDkwMTMwLjE2NTA1MzA5NTc.*_ga_WC4JKKPHH0*MTY2OTM3NjkwOS4zMTQuMS4xNjY5Mzc5ODA2LjAuMC4w).

This example illustrates how to create the single group for null and empty value in Windows Forms DataGrid(SfDataGrid)

By default, empty and null values are created the separate groups in SfDataGrid. You can able to create the single group for empty and null value by using KeySelector in GroupColumnDescriptions.

```C#
```
this.sfDataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
{
ColumnName = "Country",
Expand All @@ -17,7 +13,7 @@ this.sfDataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
{
return "";
}

return item;
}
});
Expand Down