Click here to Skip to main content
15,914,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys!

I have a grid view on my original page. At first load, it does not have any records. If I click the add checklist button located at the bottom, a new window will appear. From that window, it has a grid view that contain records. Users will just double click the record they want to add then after that, it will pass to the grid view at the original page. What I have tried is that, I just add a select command on the pop up box that contains the grid view with records. But I did not meet the requirement. Can anyone help me on how to able to do that requirement? Please :)
Posted

1 solution

Why don't you try to add a code on pageload() ?

Like a query?

Select * from [Table]
Gridview.Datasource = ds
Gridview.Databind()


So that at pageload it will automatically show the records. Is that what you want to happen?
 
Share this answer
 
v3
Comments
DarkDreamer08 2-Sep-14 21:55pm    
No. I will not going to show all the records to the grid view in the original page. The records that can be seen there are those that the user added by double clicking the records from the pop up box. :)
NekoNao 2-Sep-14 22:05pm    
so what you are doing is your adding a table (from pop-up) from another table (original page)?

i guess you what you need is a select query that calls the ID of that certain record.
DarkDreamer08 2-Sep-14 22:28pm    
Yup! :) That's it!

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