I have SfDatagrid and I made grouping:
this.Dgv.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "xAccNameForCode" });
this.Dgv.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "xParentName" });
but what I need is a grouping with some conditions like:
I want to make a group according to " xParentName" but if another field (boolean field) = true but the another field that equals false I don't want to make grouping for it.
is that allowed?
Hi Mohamad,
Based on the information provided, we need details about the relationship between the `boolean field` and the `xParentName` column you mentioned. Additionally, we need to know whether the `boolean field` is another column or the bound property value of the `xParentName` column. Providing these details will help us to better understand your scenario and work towards finding a solution promptly.
However, we have a 'Custom Grouping' support for our DataGrid and it can be achieved for a particular column using custom logic. You can refer to our online user guide documentation below.
UG Link : Grouping | DataGrid Control
for Windows Forms | Syncfusion
We hope this helps. Please let us know if you need any further assistance.
Regards,
Gokul S
I have "AccType" column, what I need if the column is "Main" I need to create the group by "xParentName" but I also need to create the group in the same row not in another row.
the following code is giving me what I need but not completely!
what I need is:
in the 4th row, I have (Osool Thabta) and it has some children so you can see that I have in the 6th row repate to the (Osool Thabta) again and under it the children.
it's ok but what I want exactly is to put the children directly under the first (Osool Thabta) in the so the grouping will be in it.
as you can see in the following image.
I hope my question was clear.
Hi Mohamad,
Sorry for the inconvenience. We are little bit unclear about your requirement. But we suspect that your requirement is, when grouping the IsChecked column, you need to display only the “True” values in that column, or you want to remove the “False” values while grouping the IsChecked column. Please refer to the screenshot below for your reference. If possible, could you please provide a sample reference to demonstrate your requirement?
|
|
Providing these details will help us better understand the issue and work towards finding a solution promptly.
Regards,
Gokul S