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
380
Column in red
posted

Hello, i've a ultrawebgrid in asp.net with a DataSource = DataTable and i want to change de forecolor of the one column, How i do that ? Thanks!!

Parents
No Data
Reply
  • 49378
    posted

    Hi gabrieler,

    The styling for columns in UltraWebGrid is independent of the data source type. Each column in the grid has a CellStyle collection which you can use to set the fore/back colors for that column (among other options). Additionaly you can use Header.Style to style the header.

    These styles may be set through the designer or alternatively in the code-behind, for instance:


    UltraWebGrid1.Columns[0].CellStyle.BackColor = System.Drawing.Color.Red;
    UltraWebGrid1.Columns[0].Header.Style.BackColor = System.Drawing.
    Color.Red;

    Please feel free to contact me if you have any quesitons.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

Children
No Data