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 width of the column to its content

Thread ID:





30402 Jun 17,2005 02:36 AM Jun 17,2005 05:32 AM Windows Forms 3
Tags: GridControl
Prathima Venkobachar
Asked On June 17, 2005 02:36 AM

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

Administrator [Syncfusion]
Replied On June 17, 2005 04:36 AM

What version are you using? In 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?

Prathima Venkobachar
Replied On June 17, 2005 04:46 AM

I am using 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.

Administrator [Syncfusion]
Replied On June 17, 2005 05: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.


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.