Sponser Link

Decimal number formatting in Infragistics Ultragrid in vb.net

You can restrict the cell of ultragrid at your custom decimal places. Ultragrid has format function, you can define any format which is acceptable for .Net languages. The sample code is defined for set the column at two decimal places.

 Dim band As UltraGridBand = Me.UltraGrid1.DisplayLayout.Bands(0)

            For Each row As UltraGridRow In Me.UltraGrid1.Rows.GetRowEnumeratorGridRowType.DataRow,

                       Nothing, Nothing)

                If row.Band.Index = 0 Then
                   If row.Cells("QTY").Value = 0 Then
                            row.RowSelectorAppearance.ImageBackground = 
                    End If
                End If