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.

GridGroupingControl and ShowTableIndent issues

Thread ID:

Created:

Updated:

Platform:

Replies:

105005 Aug 31,2012 09:28 AM Sep 7,2012 12:05 AM Windows Forms 2
loading
Tags: GridControl
Jeff Voigt
Asked On August 31, 2012 09:28 AM

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


Jeff Voigt
Replied On August 31, 2012 09:42 AM

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;
}
}


Arun Kumar V [Syncfusion]
Replied On September 7, 2012 12:05 AM

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

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.

;