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
255
Format first row differently than rest of UltraGrid
posted

I have a working app that is being changed.  I need to have the first row of an UltraGrid formatted differently than the rest of the "grid".

I've added a comment row as the first row in the grid.

The current code formats each column using:

        For Each column As UltraGridColumn In Me.reportGrid.DisplayLayout.Bands(0).Columns
            If column.Key = "Year" Then
                column.Format = "G"
                column.Width = 105
            Else
                column.Format = "C0"
                column.Width = 120
 


        Dim ugRow As UltraGridRow
        ugRow = Me.reportGrid.Rows.Item(0)
ugRow.Format = ""

So that only the first row is formatted to allow a text format?

So far it looks like the way to do this is to use a filter as shown here:
http://www.infragistics.com/community/forums/t/66668.aspx