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
610
Is it possible to set bgrd color of cell to be gradient?
posted

Hello,

Is it possible to set background color of a WebHiearachicalDataGrid cell to be gradient?

Thanks.

Vic

  • 610
    posted

    Will answer myself:

    <style>.GradientGreen{

     

     

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00FF00', endColorstr='#ccFF88'); </style>

    This is for IE. You can find samples for other browsers on the Internet.

    Then

     

     

    <Columns><

     

    ig:BoundDataField DataFieldName="Comments" Key="Comments" Hidden="false" Header-Text= "Comments" CssClass="GradientGreen"/></Columns>

    Or from the code:

     

     

     

     

     

    protected void WebHierarchicalDataGrid1_InitializeRow(object sender, RowEventArgs e){

     

     

    e.Row.Items[3].CssClass =

    "GradientGreen"; }