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

Make a row look bold

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saran kumar
Top achievements
Rank 1
Saran kumar asked on 09 Jan 2010, 09:37 AM
hi
how to make the last row of the databind into the grid to appear as bold in text style.

please help

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 11 Jan 2010, 05:38 AM
Hello Saran,

Try the following code snippet in order to set the last row in bold style.

CS:
 
    protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        if (RadGrid1.PageCount == (RadGrid1.CurrentPageIndex+1)) 
        { 
            GridDataItem item = (GridDataItem)RadGrid1.MasterTableView.Items[RadGrid1.MasterTableView.Items.Count - 1]; 
            item.Font.Bold = true
        } 
    } 

-Shinu.
Tags
Grid
Asked by
Saran kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or