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. Image for the cookie policy date

GridGroupingControl and ShowTableIndent issues

We are currently using Syncfusion v9.3 (we can't easily upgrade so this is not an option).  We have a grid grouping control using the following code:

grd.TableOptions.ShowRowHeader = false;
grd.NestedTableGroupOptions.ShowColumnHeaders = false;

The result looks like so:

Now, we've tried to implement the following code:

grd.TableOptions.ShowRowHeader = false;
grd.NestedTableGroupOptions.ShowColumnHeaders = false;
grd.TableOptions.ShowTableIndent = false;
grd.TableOptions.ShowRecordPlusMinus = true;

The result then looks like this:

As you can see we totally lost our ShowRecordPlusMinus!  We've spent countless hours trying to figure out how to achieve this result here.

Thank You,
-jv


2 Replies

JV Jeff Voigt August 31, 2012 01:42 PM UTC

Another thread helped me finally!!!

I used the following code to achieve it:

grd.GetTableModel(grd.TableDescriptor.Relations[0].ChildTableName).QueryColWidth += new GridRowColSizeEventHandler(ChildTableModel_QueryColWidth);

and then implemented the method like so:

private void ChildTableModel_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
if (e.Index == 1)
{
e.Size = 0;
e.Handled = true;
}
}



AK Arun Kumar V Syncfusion Team September 7, 2012 04:05 AM UTC

Hi Jv,

We are glad to hear that your issue is resolved.
Let me know if you have any other concerns.

Thanks,
Arun Kumar V

Loader.
Live Chat Icon For mobile
Up arrow icon