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

GroupByExpressions

2 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 07 Apr 2011, 06:34 AM
Hello Prayag,

Try the following code snippet in ItemDataBound event to hide the field title in GroupHeader.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
       if (e.Item is GridGroupHeaderItem)
        {
            GridGroupHeaderItem groupHeader = (GridGroupHeaderItem)e.Item;
            groupHeader.DataCell.Text = groupHeader.DataCell.Text.Split(':')[1];
        }
     }

Also refer the following documentation which expalins how to customize GridGroupHeaderItem.
Customizing GridGroupHeaderItem

Thanks,
Princy.
0
prayag ganoje
Top achievements
Rank 1
answered on 07 Apr 2011, 02:55 PM
Perfect. Thanks !
Tags
Grid
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
prayag ganoje
Top achievements
Rank 1
Share this question
or