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

Identifying a row while editing

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 28 Jun 2012, 12:30 PM
Hi,
     Im using inplace editing mode in my radgrid. I need to differentiate the row which im editing from the other rows. How can I change the color of the editing row to a different color from its parent row
    

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Jun 2012, 12:35 PM
Hi Ryan,

Please try the following code snippet to give color for the editing row.

C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            GridEditableItem item = (GridEditableItem)e.Item;
            item.BackColor = Color.OrangeRed;
        }
}

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