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

Show bolded font for newly inserted records

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 16 Nov 2010, 12:18 AM
Hello,
Is there a way to Show bolded font for newly inserted records?

We can maintain the last ID of the record for every page visit and then any record which are added in the grid will be greater than that last ID
Is there any way to show only these records in BOLD?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 16 Nov 2010, 05:44 AM
Hello Sanjay,

There is one Code Library which describes how to select the last inserted row. Please take a look at this and use the same logic to get the last inserted row.
Select Last Inserted Row

And try the following code snippet to show one row in grid in bold.

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
   {
       GridDataItem item = (GridDataItem)RadGrid1.Items[0]; // accessing the first record
       item.Style.Add("font-weight","bold");
   }

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