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
335
How to make ultragrid rows alternate in colors..??
posted

Hi..

 How can I make my ultragrid rows alternate in color...????

 

any simple example or idea to do this......

any reply would be appreciated.....:)

 

Parents
  • 28464
    posted

    You are most probably looking for the RowAlternateStyleDefault style setting of the grid - it gets applied for every even row of the grid, while for odd rows the default RowStyleDefault is applied.

    Example 

     <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px"
            Width="325px">
          
            <DisplayLayout BorderCollapseDefault="Separate" Name="UltraWebGrid1"
                RowHeightDefault="20px" Version="4.00">

                <RowAlternateStyleDefault BackColor="#FF99CC">
                </RowAlternateStyleDefault>


                <RowStyleDefault BackColor="White" BorderColor="Gray" BorderStyle="Solid"
                    BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt">
                    <Padding Left="3px" />
                    <BorderDetails ColorLeft="White" ColorTop="White" />
                </RowStyleDefault>

            </DisplayLayout>
        </igtbl:UltraWebGrid>

Reply Children