This is a migrated thread and some comments may be shown as answers.

Change cells in a skin

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
OSCAR
Top achievements
Rank 1
OSCAR asked on 11 Dec 2008, 04:10 PM
I am modifying a skin for use in my application, but not how to modify the height of the cells, which properties in the CSS change to apply to what i need. I am by modifying the skin that comes in the Q3 grid "Web 20".  thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Dec 2008, 05:27 AM
Hi Oscar,

You can apply CssClass for the required cell as shown below.

CS:
  protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem item = (GridDataItem)e.Item; 
            if (item["ProductName"].Text == "Chai"
            { 
                item["ProductName"].CssClass = "MyClass"
            } 
        } 
   } 

Style.Css:
<head runat="server"
    <style type="text/css" > 
    .MyClass 
    { 
     height:100px !important; 
     background-color:Red; 
    } 
    </style> 
</head> 


Shinu
Tags
Grid
Asked by
OSCAR
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or