changing color of edit row in gridview
-
Hi, i am using C# asp.net2.0 i want to know two things 1. is it possible to change the color of editing row of gridview that is when i click edit button(template) that row's color change 2. Is it possible to have some diffenrnt color of last inserted row as i have interface in above frame and i select the record and add to gridview, Please help Thank you
regards imran khan
-
Hi, i am using C# asp.net2.0 i want to know two things 1. is it possible to change the color of editing row of gridview that is when i click edit button(template) that row's color change 2. Is it possible to have some diffenrnt color of last inserted row as i have interface in above frame and i select the record and add to gridview, Please help Thank you
regards imran khan
hi mohd imran abdul aziz, You can directly add Back color to selected row of GridView as follows.
<asp:GridView SelectedRowStyle-BackColor ="Aqua" ID="Grid" runat="server" ></asp:GridView>
For 2nd problem you need to write code in the RowCreated Event of Gridview as follows..protected void Grid_RowCreated(object sender, GridViewRowEventArgs e) { e.Row.BackColor = "Blue"; }
Hope this will help you. Thanks & Regards DilipvDilip Kumar Vishwakarma Programmer .Net Consulting