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
close icon

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

aaa

5 Replies

PM Piruthiviraj Malaimelraj Syncfusion Team November 10, 2016 08:46 AM UTC

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 



TR Truong November 10, 2016 08:55 AM UTC

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.



PM Piruthiviraj Malaimelraj Syncfusion Team November 10, 2016 01:34 PM UTC

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 



TR Truong November 11, 2016 01:41 AM UTC


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

How to resize like your Image

THANK YOU FOR SUPPORT 


PM Piruthiviraj Malaimelraj Syncfusion Team November 11, 2016 01:01 PM UTC

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 


Loader.
Live Chat Icon For mobile
Up arrow icon