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
100
WinGrid column formats for different rows
posted

Hi

I have tried to search for this and have seen some results but with an editable column. I have a grid that has a dataset as it's data source and a decimal column that we current set the format for in the display layout in the bands columns.

I would like to know if you can set the format for a column on a row by row basis because the bands is for all the columns in the data source. Now the rows are read only so it's not like I need to edit the column.

The sample code is below but again it applies to all the columns.

For Each ocolumn As Infragistics.Win.UltraWinGrid.UltraGridColumn In grdAccounts.DisplayLayout.Bands(0).Columns

   With ocolumn

      Select Case .Key

         Case "Current Balance"

              If bShowBalances = True Then

                  .Format = "$#,###,##0.00"

              Else

                  .Format = "$************"

              End If

      End Select

   End Width

Next

Parents Reply Children
No Data