Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

Capability for a single column to fill an empty space in a grid view

$
0
0

In this example we added a FillEmptySpace option to the GridColumn descendant. Only one column in the grid view can have this option enabled, i.e. if you set the FillEmptySpace property to true for a single column other columns immediately set this option to false themselves. Column with this option enabled now recalculates its width after every layout change in order to fill an empty space in the grid view. This feature won't work if the grid view's option OptionsView.ColumnAutoWidth is enabled.

Question Comments

Added By: Eduardo Ramirez at: 10/28/2014 11:47:25 AM    

Hi folks,

would you mind to attach an example using the code below?

Thanks in advanced.
Eduardo

Added By: Nikita (DevExpress Support) at: 10/29/2014 1:43:16 AM    

Hello,
You can download the project for this example by a link on a right panel (see the screenshot in the attachment). First you have to download the Example Runner, then use this runner to open the *.dxsample file. 
I hope this helps. 

Added By: Simon Hewitt at: 12/17/2015 3:10:30 AM    

Needs a bit of tweaking in RecalculateColumnWidths to exclude summing columns with GroupIndex >= 0 (unless OptionsView.ShowGroupedColumns == true)

Added By: Nadezhda (DevExpress Support) at: 12/17/2015 8:55:00 AM    As far as I understand, your issue has been resolved. Please do not hesitate to contact us in case of any difficulty. We will be happy to help you!

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>