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.

Set text of label into gridlistcontrol row , resize grid full fill gridlistcontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

127358 Nov 9,2016 11:11 PM Nov 11,2016 08:01 AM Windows Forms 5
loading
Tags: GridListControl
Truong
Asked On November 9, 2016 11:11 PM

aaa

Piruthiviraj Malaimelraj [Syncfusion]
Replied On November 10, 2016 03:46 AM

Hi Truong, 

Thanks for your interest in Syncfusion products. 

Unfortunately we could not refer the image provided in your update since it is broken. We suspect that your requirement is to change the cell text and to resize the columns to fill the gridlistcontrol. To customize the cell text , QueryCellInfo event  can be used and please refer the forum #127335 for this scenario. To resize the columns to fill the grid, AllowProportionalColumnSizing property can be used. 
 
Code example: 
this.gridListControl1.Grid.AllowProportionalColumnSizing = true; 
 
Please let us know if we misunderstood anything.  
 
Regards, 
Piruthiviraj 


Truong
Replied On November 10, 2016 03:55 AM

THANK YOU FOR YOUR SUPPORT

Grid.AllowProportionalColumnSizing = true; is not good , it only full fill the first column to gridlistcontrol , the second you must scroll horizontal to see it.


Piruthiviraj Malaimelraj [Syncfusion]
Replied On November 10, 2016 08:34 AM

Hi Truong, 

Thanks for the update. 

We had analyzed your scenario. Unfortunately we could not reproduce the issue with AllowProportionalColumnSizing property. We suspect that the issue can be occurred by your customization related to column width. Could you please confirm us whether if you have any customization regarding columns width or provide us with minimal sample which reproduces your scenario. It would be more useful for us to provide the exact solution at the earliest. Please refer the below image, 
 
 
 
Regards, 
Piruthiviraj 


Truong
Replied On November 10, 2016 08:41 PM


 gridListControl1.Grid.HideCols["ID"] = true;
gridListControl1.Grid.AllowProportionalColumnSizing = true;

How to resize like your Image

THANK YOU FOR SUPPORT 

Piruthiviraj Malaimelraj [Syncfusion]
Replied On November 11, 2016 08:01 AM

Hi Truong, 

Sorry for the inconvenience caused. 

We have tried to reproduce the reported scenario in our end but unfortunately we could not able to reproduce the issue. We could not able to refer the image provided in the last update. Could you please provide the screen shot in a compressed(.zip) file. It would be more useful for us to provide the exact solution at the earliest. 
 
Regards, 
Piruthiviraj 


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.

;