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

Set width of the column to its content

Hi, I am using gridgroupingcontrol.When I dbl click on the column border, it resizes to column to the width of the header text.I want resize it to width of the longest content.How can I do it..? Thanks Prathima

3 Replies

AD Administrator Syncfusion Team June 17, 2005 03:36 AM

What version are you using? In 3.2.1.0 with this sample, http://www.syncfusion.com/Support/user/uploads/GGC_EmptyDataSource_f901f16e.zip I see the behavior you described by default. I can type a long entry in a cell, then double click the header cell border and see the colwidth change to fully see what I typed. Are you doing something different?


PV Prathima Venkobachar June 17, 2005 03:46 AM

I am using 3.2.1.0 version. The sample u sent works fine here.But same doesn''t work in my appliacation. Initially I will be seeting the column width when I add it to the Visible column list. I am seeting the vidth using GridColumnDescriptor colDescriptor1 = new GridColumnDescriptor(); adding this to visible collection.


AD Administrator Syncfusion Team June 17, 2005 04:32 AM

If yo can upload a sample showing the problem or tell how to see the problem in one of the samples we ship, we can try to resolve the problem.

Loader.
Live Chat Icon For mobile
Up arrow icon