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
90
Row style in Header
posted

Hi All,

In my grid, I have total two rows in Header section.  I need to give two different color for these two rows.  Can you let me know how to set different row background color for the rows present in Header section?

 Thanks in advance,

 -Suresh

  • 7694
    posted

     Hello,


    You can use the property BackColor of column header. Please take a look  at the code below:
     

    protected void Page_Load(object sender, EventArgs e)
        {
            UltraWebGrid1.Columns[0].Header.Style.BackColor = Color.Red;
            
        }

    Hope this helps.