datagrid in C#
-
HI all, On my web form i have a datagrid DGrid.DataSource=ds; DGrid.DataBind(); in this datagrid I want to add a hyperlink at runtime to the existing column....i dont want to add it at design time ...& want to give a backcolor to the first row.... so plz help me... thanks....
-
HI all, On my web form i have a datagrid DGrid.DataSource=ds; DGrid.DataBind(); in this datagrid I want to add a hyperlink at runtime to the existing column....i dont want to add it at design time ...& want to give a backcolor to the first row.... so plz help me... thanks....
I believe your answer can be found in the ItemDataBound Event[^]. Basically what you'll want to do is to add logic to this event that will create the hyperlink and add it to the datagrid column it needs to be in. You'll also want to apply the backcolor here in this method. Datagrid Girl[^] has quite a bit of good info that might help you.