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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I adjust the right margin for the content of cells in column

Thread ID:





23886 Jan 22,2005 06:32 AM UTC Jan 22,2005 07:48 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 22, 2005 06:32 AM UTC


Administrator [Syncfusion]
Replied On January 22, 2005 07:48 AM UTC

I do not understand what you are requesting. If you want the right-most column to fill the client area o fthe grid so there is no space between the last column and the scrollbar, then try handling the grid.QueryColWidth event(grid.Model.QueryColWidth in GridDataBoundGrid). In your handler, if e.Index == this.grid.model.ColCount, set e.Size = grid.model.ColWidths.Gettotal(0, grid.Model.ColCount-1), and also set e.Handled = true. If you want to proportionally size the columns to fill the client area, then check out \Grid\Samples\DataBound\GridDataBoundImageCell sample.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon