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.

Autosize columns programmaticaly

Thread ID:

Created:

Updated:

Platform:

Replies:

129996 Apr 13,2017 09:12 AM Apr 21,2017 09:01 AM ASP.NET Web Forms 4
loading
Tags: Grid
marchesini
Asked On April 13, 2017 09:12 AM

Hello,

I would like to put in "autosize" all columns in my grid programmaticaly because my datasource change each time.
Someone can explain me how can i do that ?

Thank you.

Arnaud.

Sorry for my english.


Saravanan Arunachalam [Syncfusion]
Replied On April 14, 2017 05:22 AM

Hi Marchesini, 
Thanks for contacting Syncfusion’s support. 
We have analyzed your requirement and we can achieved it by using allowResizeToFit and commonWidth property of Grid control. Please refer to the following online api reference link. 
Regards, 
Saravanan A. 


marchesini
Replied On April 20, 2017 08:52 AM

Thank for your reply. I will test and i go back to you.

marchesini
Replied On April 20, 2017 09:08 AM

So i don't find commonWidth in grid, i forgot to tell you that i use "Web forms" in C#/VB.net and the link you gave me tip on API Javascript.
 

Prasanna Kumar Viswanathan [Syncfusion]
Replied On April 21, 2017 09:01 AM

Hi Marchesini, 

Sorry for the inconvenience caused. 

To set the column width based on the content, we suggest you to use only the AllowResizeToFit property in Grid.  

For more information, refer the below help document.  


Regards, 
Prasanna Kumar N.S.V 


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.

;