2
Answers

How to save the values of a GridView in datatable?

Hello,
I have a Gridview and i am binding the grid on multiple times like on selectedindexchange or search button click.
Now i need the current values of the grid and want it in a datatable in c#.
Please help. 

Answers (2)

0
Photo of alex alex
NA 27 647 8y
I need more details,would you please make some changes on sample which has been sent to you?
0
Photo of Saineshwar Bageri
NA 20.1k 11.2m 8y
 Do in Document.ready function of Jquery.
 
1. Bind main dropdownlist and provide ID of dropdownlist selected from Model.
2. then if first dropdownlist is selected then call your ajax script Document.ready function in to bind  Second dropdownlist and then to set selected values just get value from Model and set it.
 
 Reference :-
http://www.c-sharpcorner.com/UploadFile/4d9083/filter-webgrid-with-cascading-dropdownlist-along-with-paging/