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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl (2.1.0.9) - Column Width

Thread ID:

Created:

Updated:

Platform:

Replies:

34070 Sep 1,2005 12:15 PM UTC Sep 1,2005 01:07 PM UTC WinForms 4
loading
Tags: GridControl
Daniel Roesch
Asked On September 1, 2005 12:15 PM UTC

Hi! In my form_load method I try to set width for a column by doning following: this.topLevelDescriptor.Columns["acolumn"].Widht = 75; But when I set the width the scroll bar of the GridGroupingControl disappears! How can I solve that problem? Can anybody help me? Kind regards, Dan Roesch

Administrator [Syncfusion]
Replied On September 1, 2005 12:32 PM UTC

I tried to see this problem in a simple sample (using both a flat datasource and a hierarchical datasource), and could not. Here is the flat sample. http://www.syncfusion.com/Support/user/uploads/GGC2109_7ee11e6d.zip What are you doing differently? Can you upload a sample showing the problem?

Daniel Roesch
Replied On September 1, 2005 12:43 PM UTC

Hi Clay I wasn''t very exact with my explanation because not the vertical but the horizontal scrollbar disappears also your example does not work correctly. As soon as you add more columns to the grid the h-scrollbar gots lost. Cheers! Dan Roesch

Daniel Roesch
Replied On September 1, 2005 12:43 PM UTC

>Hi Clay > >I wasn''t very exact with my explanation because not the vertical but the horizontal scrollbar disappears also your example does not work correctly. As soon as you add more columns to the grid the h-scrollbar gots lost. > >Cheers! >Dan Roesch PS: I do the same as you did in your example

Administrator [Syncfusion]
Replied On September 1, 2005 01:07 PM UTC

This has been corrected in later releases. The only work-around I know is to let the grid initially draw, and then set the colwidth. This does cause a flash as the grid displays.
	//bottom of formload
	Timer t = new Timer();
	t.Interval = 10;
	t.Tick += new EventHandler(t_Tick);
	t.Start();
}

private void t_Tick(object sender, EventArgs e)
{
	Timer t = sender as Timer;
	t.Stop();
	t.Tick -= new EventHandler(t_Tick);
	t.Dispose();
	this.gridGroupingControl1.TableDescriptor.Columns["Col2"].Width = 175;
}
 

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.

Warning Icon 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.Close Icon

;