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

Extra Line under item with a groupby

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James Lever
Top achievements
Rank 1
James Lever asked on 26 Aug 2008, 01:59 PM
Right sorry if you don't understand this but i have grid that use's a group by my client wants a Line at the bottom of a main items not each item as it's confusing to which item belongs to which group to view it you may understand http://devskibeat.bn3tech.co.uk/

have a look.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Aug 2008, 06:33 AM
Hello James,

I'm not clear with the scenario you require but from my understanding, to customize a GroupHeaderItem you can try the following code.
cs:
protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridGroupHeaderItem) 
        { 
            GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; 
            item.DataCell.Style.Add("text-decoration", "underline"); 
        } 
    } 

You can also refer to the following document, for more information on how to customize the GroupHeader.
Customizing GridGroupHeaderItem

Thanks
Princy.
Tags
Grid
Asked by
James Lever
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or