GridControl.RangeStyles.Add and TableStyle.WrapText

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.

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon