Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i click the Show button, from the room table,In Gridview records as follows


room1 course1 room2 course2

11 AFF 21 MFA
12 EFA 22 ROC
13 23 ERS
14 SFU 24 ASM


Then i have save button when i click the save button records are saved in the Allocation Table.


The Allocation Table records as follows

room1 course1 room2 course2

11 AFF 21 MFA
12 EFA 22 ROC
13 POL 23 ERS
14 SFU 24 ASM

Then i have one button called Refresh gridview, when i click that refresh gridview button in gridview records as follows from the allocation table


finally in gridview records as follows


11 AFF 21 MFA
12 EFA 22 ROC
13 POL 23 ERS
14 SFU 24 ASM

when i click the refresh gridview error shows as follows

A field or property with the name 'Room1' was not found on the selected data source.


what can i do?

please help me.

Rgds,
Narasiman P.
Posted

take a look at this article. they are exactly doing the same thing you are trying to do. they have gridview in updatepanel and refreshing it every 30 seconds using AJAX Timer Control.

Click Here
 
Share this answer
 
Comments
santhiyaa 11-Jul-13 5:17am    
ajax technology gud solution
I guess you should set the AutoGenerateColumns property of your datagridview to true. Then, the datagrid will show all the columns from the DataSource as they are returned and you will be able to see what is going on.
 
Share this answer
 

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