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.

GridControl.RangeStyles.Add and TableStyle.WrapText

Thread ID:





35571 Oct 4,2005 10:37 AM Oct 4,2005 11:12 AM Windows Forms 1
Tags: GridControl
Gergely Varadi
Asked On October 4, 2005 10:37 AM

1. Drop a GridControl on a form. 2. Add an item to the RangeStyles collection. 3. Set its Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table 4. In InitializeComponent() insert Me.GridControl1.TableStyle.WrapText = False just after the row Me.GridControl1 = New Syncfusion.Windows.Forms.Grid.GridControl 5. Set a breakpoint after the row Me.GridControl1.RangeStyles.AddRange(New Syncfusion... Result: GridControl1.TableStyle.WrapText is set to True. In my case there''s a base control having the general properties and every GridControl in my project is derived from this one. If a derived control sets its own BaseStyle, the WrapText property is reset to True, what I don''t want.

Administrator [Syncfusion]
Replied On October 4, 2005 11:12 AM

Instead of using the TableStyle in your base class to set WrapText = false, try using Grid.BaseStylesMap("Standard").StyleInfo.WrapText = False


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.