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.
Syncfusion Feedback

GridControl Column Merge and ColWidth value

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 3, 2006 04:28 AM UTC

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.

Warning Icon 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.Close Icon

;