Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
Is it possible to put a vbCrLf in a cell and have it be displayed?
posted

hello,  I'm trying to put vbcrlf in a cell and then autoresize that row so that the cell can display a few data items.  I.e.  I have the column bound to a string and the contents of the string is: 

"7/1/2008" & vbCrLf & "7/2/2008" & vbCrLf & "7/3/2008"

 I want it to show up in the cell as (but w/o the bulleted list look):

  • 7/1/2008
  • 7/2/2008
  • 7/3/2008

Thanks

Rocky

Parents
No Data
Reply
  • 405
    posted

    As a followup to this question... if I use the following code after binding the grid:

    • For Each ugr1 As Infragistics.Win.UltraWinGrid.UltraGridRow In dgOfferings.Rows
      • For Each ugr2 As Infragistics.Win.UltraWinGrid.UltraGridRow In ugr1.ChildBands(0).Rows
        • ugr2.Cells("CombinedDatesTimes").CellDisplayStyle = UltraWinGrid.CellDisplayStyle.FormattedText
        • ugr2.PerformAutoSize()
      • Next
    • Next

    This will make it so my cell displays the first date (stops displaying at the first vbCrLf it encounters, but if I mouseover the field, the caption that appears DOES correctly display the 3 dates, even though the 2nd and 3rd don't show up in the field.  The 3 dates are also shown in the caption on separate lines, as I need.

    Any ideas?

    Rocky

Children