2

I am trying to achieve wrapping and unwrapping of text in C1FlexGrid columns in a menu click event handler. The below code works to wrap the text when appropriate menu action is selected. But how I can unwrap the text?

Me.Styles(C1.Win.C1FlexGrid.CellStyleEnum.Normal).WordWrap = True
Me.AllowResizing = AllowResizingEnum.Rows
Me.AutoSizeRows()

I tried the below code but it did not make any difference. Any help is appreciated. Thank you!

Me.Styles(C1.Win.C1FlexGrid.CellStyleEnum.Normal).WordWrap = False
Me.AllowResizing = AllowResizingEnum.None
Me.AutoResize = False
Nilay Vishwakarma
  • 3,105
  • 1
  • 27
  • 48
Jyina
  • 2,530
  • 9
  • 42
  • 80
  • Why remove `AutoSizeRows()` call? Once you set `WordWrap` to false, and call auto-size, you should get what you want. – DonBoitnott Dec 05 '14 at 12:48

0 Answers0