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

Displaying Asterisk after Row Edit

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 11 Sep 2008, 04:34 PM
I was wondering how to make a row display an asterisk when it has been modified?

Thanks.
Brandon

1 Answer, 1 is accepted

Sort by
0
Accepted
Vassil Petev
Telerik team
answered on 12 Sep 2008, 02:55 PM
Hi Brandon,

Thank you for the question.

This functionality is not built-in, but you could add your custom logic that implements a similar scenario. You could mark all rows which have been edited by using the ValueChanged event. Please, review the code-block below as example:
 
void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e) 
    if (e.CellElement is GridRowHeaderCellElement && e.CellElement.RowInfo.Tag != null &&  
        (bool)e.CellElement.RowInfo.Tag) 
    { 
        e.CellElement.Image = global::RadGridView_Validation.Properties.Resources.asterisk; 
    } 
 
void radGridView1_ValueChanged(object sender, GridViewCellEventArgs e) 
    this.radGridView1.CurrentRow.Tag = true;

Hope this suits to your case. If you have other questions, do not hesitate to contact me again.

 
Best wishes,
Vassil
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Vassil Petev
Telerik team
Share this question
or