Dynamically giving color to the datagrid
-
Hi , I want to give the color to the particular row of the datagrid at runtime....when....the template column is clicked....so i want to give the backcolor to the entire row at that time that means runtime.... In datagird I have a one column which is a template column... i have tried like this but this is giving color to the row permanently.....& want to change its color as & when that row's template column clicked....please help me for(int i=0; i < DGPODetailShow.Columns.Count;i++) { DGPODetailShow.Items[0].Cells.[i].BackColor=System.Drawing.ColorTranslator.FromHtml("#EBE5DE"); } Can anybody help me.... Thanks
-
Hi , I want to give the color to the particular row of the datagrid at runtime....when....the template column is clicked....so i want to give the backcolor to the entire row at that time that means runtime.... In datagird I have a one column which is a template column... i have tried like this but this is giving color to the row permanently.....& want to change its color as & when that row's template column clicked....please help me for(int i=0; i < DGPODetailShow.Columns.Count;i++) { DGPODetailShow.Items[0].Cells.[i].BackColor=System.Drawing.ColorTranslator.FromHtml("#EBE5DE"); } Can anybody help me.... Thanks
This question belongs in the ASP.NET forum. I'll give you a hint, though: read about
ViewState
.Microsoft MVP, Visual C# My Articles