Hi,
I am using gridview to bind datatable values. In the grdiview am using item template to bind the respective values.
In the gridview first row i have to remove the controls and also add an new control in the first row position alone.
Eg:Name should be in the first row.
Age ,dept,counntry should bind below the name filed
kathir_cs
Member
20 Points
88 Posts
How to remove the row and add new control to gridview row
Apr 03, 2012 05:44 PM|LINK
Hi,
I am using gridview to bind datatable values. In the grdiview am using item template to bind the respective values.
In the gridview first row i have to remove the controls and also add an new control in the first row position alone.
Eg:Name should be in the first row.
Age ,dept,counntry should bind below the name filed
Name
age Dept Country State
how to perform this in gridview
mameenkhn
Contributor
2026 Points
391 Posts
Re: How to remove the row and add new control to gridview row
Apr 03, 2012 06:13 PM|LINK
I would recomend you to use repeater. You will have full control of layout of data
--------------------------------------------------
Muhammad Amin
محمد امين
tdmca
Contributor
2396 Points
661 Posts
Re: How to remove the row and add new control to gridview row
Apr 03, 2012 06:16 PM|LINK
you can use repeater
to add control at runtime add panel in itemtemplate
at runtime use FindControl to find panel and then add controls to it
Gaspard
Contributor
2066 Points
416 Posts
Re: How to remove the row and add new control to gridview row
Apr 03, 2012 06:47 PM|LINK
This web page may help
http://stackoverflow.com/questions/199986/how-to-add-different-controls-in-gridview
Regards