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.

GridTableDescriptor

Thread ID:

Created:

Updated:

Platform:

Replies:

96634 Sep 23,2010 08:15 AM Sep 24,2010 01:54 AM Windows Forms 1
loading
Tags: GridControl
Narasimha Pavan
Asked On September 23, 2010 08:15 AM

Hi,

How to give colspan with GridTableDescriptor?

Regards,
Pavan


Jisha Joy [Syncfusion]
Replied On September 24, 2010 01:54 AM

Hi Pavan,

Please refer the code that implement multirow records in GridGroupingControl by using GridColumnSpanDescriptor and GridColumnSetDescriptor classes.


Dim csd1 As GridColumnSpanDescriptor = New GridColumnSpanDescriptor("Criteria", GridRangeInfo.Cells(0, 0, 0, 1).ToString())
Dim csd2 As GridColumnSpanDescriptor = New GridColumnSpanDescriptor("Criteria Value", GridRangeInfo.Cells(1, 0, 1, 0).ToString())
Dim csd3 As GridColumnSpanDescriptor = New GridColumnSpanDescriptor("History", GridRangeInfo.Cells(1, 1, 1, 1).ToString())
Dim csd As GridColumnSetDescriptor = New GridColumnSetDescriptor()
csd.ColumnSpans.Add(csd1)
csd.ColumnSpans.Add(csd2)
csd.ColumnSpans.Add(csd3)
Me.GridGroupingControl1.TableDescriptor.ColumnSets.Add(csd)



Sample for your reference:

http://help.syncfusion.com/samples/Grid.Windows/43195/GGCSpan.zip

Regards,
Jisha


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.

;