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

GridControl.RangeStyles.Add and TableStyle.WrapText

Thread ID:





35571 Oct 4,2005 02:37 PM UTC Oct 4,2005 03:12 PM UTC WinForms 1
Tags: GridControl
Gergely Varadi
Asked On October 4, 2005 02:37 PM UTC

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 03:12 PM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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