We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

No grouping for NULL values in SfDataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

127780 Dec 8,2016 08:04 AM Dec 9,2016 09:07 AM WPF 1
loading
Tags: SfDataGrid
Harald Betzler
Asked On December 8, 2016 08:04 AM

Hi,

is it possible to group a column but without a group header and without a summary row for NULL values.

Suppose you have the following data source:
producercountrycount
BMW
123
Mercedes
235
VW
222
Porsche
432
RenaultFrance70
CitroenFrance67
MaseratiItaly54
Alfa RomeoItaly22
FiatItaly12
ToyotaJapan156
HyundaiJapan87
MazdaJapan44

With grouping on column country SfDataGrid displays:
(sorry for the poor presentation)
> Country:
      BMW123
      Mercedes235
      VW222
      Porsche
432
> Country: France
      Renault
70
      Citroen
67
> Country: Italy
      Maserati
54
      Alfa Romeo
22
      Fiat
12
> Country: Japan
      Toyota
156
      Hyundai
87
      Mazda
44

But I would like to have:
BMW123
Mercedes235
VW222
Porsche
432
> Country: France
      Renault
70
      Citroen
67
> Country: Italy
      Maserati
54
      Alfa Romeo
22
      Fiat
12
> Country: Japan
      Toyota
156
      Hyundai
87
      Mazda
44

Can you provide any hints?

Regards
Harald

Balamurugan Rajaraman [Syncfusion]
Replied On December 9, 2016 09:07 AM

Hi Harald, 
You can achieve your query “No grouping for NULL values in SfDataGrid” by setting the summary Row height as 0 when the null value is grouped. We attached the sample based on your query for your reference Please find the samples from the below link. 
 
Sample Link: 
Regards, 
Balamurugan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;