Click here to Skip to main content
15,907,913 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a textbox inside a datagrid. I have 25 records per page on the datagrid which is having a total count of 600. I am getting only the textbox values of the curent page. But I need the values of all the pages. How is it possible?
Posted

1 solution

Put the textbox inside
<ItemTemplate> 
inside datagrid; create itemdatabound event of that datagrid and from the cs page use findcontrol to find the textbox control and fetch individual textbox text.

If any confusion to understand don't hesitate to ask.
Happy coding.
 
Share this answer
 
Comments
AnchuG 6-Sep-12 2:06am    
In Itemdatabound also, i am getting the current page values. I have to select all the checkboxes and move everything to a new datagrid. At that time only current pages textbox value is coming.
sahabiswarup 6-Sep-12 2:48am    
I think you want all the records of the text box value;
Do one thing write the SQL statement for which you are generating the datagrid, and using sqladapter store that into a datatable. using loop you can get all the records.
Hope you want this.

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