Grid view template control
-
I am using a grid view to display contents from a dataset. I am using template controls for the columns (using databinder.eval),but when i try to access the contents of the template control,its giving gridview_name.Rows[0].Cells[0].findcontrol("Label1").text it is giving me blank. Could anyone suggest a solution to this issue? Thanks.... Sid
-
I am using a grid view to display contents from a dataset. I am using template controls for the columns (using databinder.eval),but when i try to access the contents of the template control,its giving gridview_name.Rows[0].Cells[0].findcontrol("Label1").text it is giving me blank. Could anyone suggest a solution to this issue? Thanks.... Sid
-
I am using a grid view to display contents from a dataset. I am using template controls for the columns (using databinder.eval),but when i try to access the contents of the template control,its giving gridview_name.Rows[0].Cells[0].findcontrol("Label1").text it is giving me blank. Could anyone suggest a solution to this issue? Thanks.... Sid
Hi, Instead of finding control in the cell you can find the conrol in the row of the grid. You can do like following. Label lbl = (Label)gv.Rows[0].FindControl("lableid"); I hope this will help you.
Thanks and Regards, Chetan Ranpariya
-
Hi, Instead of finding control in the cell you can find the conrol in the row of the grid. You can do like following. Label lbl = (Label)gv.Rows[0].FindControl("lableid"); I hope this will help you.
Thanks and Regards, Chetan Ranpariya