Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 01, 2012 06:10 AM by praseTech
Member
42 Points
30 Posts
May 01, 2012 05:09 AM|LINK
Hi
i am having a grid view in a user control and using placeholder i am loading this grid view to my page.
in my page i am creating a table at runtime and create multiple grid according to some data filtering.
i am able to show bind grid and show data all column in grid is having checkbox.
my problem is that i have to save all grid data using a single update button outside the grid not using rowupdating event of grid.
because i have to save all data in single hit.
but i am not able to save grid data.
while in my page i am having 2 grid and in and able to save data but for user control grid i am not able to save data.
At run time i am able to find grid but not able to find grid data.
usercontol gridview placeholder
198 Points
51 Posts
May 01, 2012 06:10 AM|LINK
I would suggest you to make datatable of data available in grid and get xml out of it and pass this xml to sql server create temp table from xml and do update with inner join or insert into values() select columns from temptable.
nishant07kum...
Member
42 Points
30 Posts
Grid View at runtime
May 01, 2012 05:09 AM|LINK
Hi
i am having a grid view in a user control and using placeholder i am loading this grid view to my page.
in my page i am creating a table at runtime and create multiple grid according to some data filtering.
i am able to show bind grid and show data all column in grid is having checkbox.
my problem is that i have to save all grid data using a single update button outside the grid not using rowupdating event of grid.
because i have to save all data in single hit.
but i am not able to save grid data.
while in my page i am having 2 grid and in and able to save data but for user control grid i am not able to save data.
At run time i am able to find grid but not able to find grid data.
usercontol gridview placeholder
praseTech
Member
198 Points
51 Posts
Re: Grid View at runtime
May 01, 2012 06:10 AM|LINK
I would suggest you to make datatable of data available in grid and get xml out of it and pass this xml to sql server create temp table from xml and do update with inner join or insert into values() select columns from temptable.