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.

GridControl Column Merge and ColWidth value

Thread ID:

Created:

Updated:

Platform:

Replies:

51326 Nov 2,2006 04:10 PM Nov 2,2006 11:28 PM Windows Forms 1
loading
Tags: GridControl
Robbe Morris
Asked On November 2, 2006 04:10 PM

If you merge columns:

grid.CoveredRanges.Add(GridRangeInfo.Cells(record.Row,
record.Column,
endRow,
endColumn));

The width for column B and C stay the
same. How can I easily get the total
width of B and C if the columns are
merged?

Administrator [Syncfusion]
Replied On November 2, 2006 11:28 PM

H Robbe,

Use the GetTotal method to calculate the width of the columns in a grid. Here is a code snippet.

int width = this.grid.ColWidths.GetTotal(Fromindex,Toindex);

Best Regards,
Haneef

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.

;