Click here to Skip to main content
15,881,866 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
--scenario

column1 column2 column3
122 delhi 34
123 bombay 44
124 chennai 54

--A header checkbox is there. Now when i click the header checkbox and all the row are selected and when i save all these data should go in backend and saved in one table.

--I m using this approach.

--when haeder checkbox is checked...i am looping through the grid and then

adding in a arraylist as below

ArrayList IDs = null;

122:delhi:34,123:bombay:44,124:chennai:54,


--now in backend i m creating a function which splits the array like
122 delhi 34
123 bombay 44
124 chennai 54

--and then i am saving in the table.


--Tell me an other approach
Posted
Updated 1-Oct-13 5:16am
v2
Comments
Sergey Alexandrovich Kryukov 1-Oct-13 11:39am    
Look at GridView binding.
—SA

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900