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!Added By: Crealogix AG at: 12/22/2015 12:31:18 AM    

please note:
- doesn't take into account grouped columns
- if the user manually chooses "best fit column" or "best fit all columns" from the context menu, the results are weird.

Added By: Sasha (DevExpress Support) at: 12/22/2015 9:09:02 AM    

Hello,
I've created a separate ticket on your behalf: The 'Capability for a single column to fill an empty space in a grid view' example works incorrectly in certain scenarios . Let us continue our discussion in this thread.

Added By: deyvi saavedra at: 6/5/2016 8:43:35 PM    I am from peru, I want to know how to call the "FillEmptySpace" property and I have the FillGridColumn classes. I leave a picture.
Note: commented lines is correct if or not.
Imagen Added By: Svetlana (DevExpress Support) at: 6/6/2016 2:03:55 AM    

Hello,

I've created a separate ticket on your behalf (T388227: How to make a single column to fill an empty space in a grid view). It has been placed in our processing queue and will be answered shortly.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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