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

format the totals

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 23 Dec 2013, 01:27 PM
Hi,
im having grouping enabled on my radgrid. I want to format the totals like make bold etc.how to achieve it

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Dec 2013, 01:39 PM
Hi Dawson,

I guess you want to format the GridGroupFooterItem, please try the following code snippet.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  if (e.Item is GridGroupFooterItem)
  {
      GridGroupFooterItem groupFooter = (GridGroupFooterItem)e.Item;
      groupFooter.Style.Add("font-weight", "bold");
  }
}

Thanks,
Shinu
Tags
Grid
Asked by
Dawson
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or