refreshing a datagrid once i update the dataset

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Hello all,

i have a few datagrids representing the days of the week. When i add
something to the database it shows up in one of the grids. However when i
add an edit/update/cancel button, and try to update it, it will update but
won't dynamically show the update until i close the browser and open it up
again. How do i refresh the data as soon as i update the database?



cheers
 
Hi,

I suppose you have a Grid Binding routine to bind the grid with the
datasource. Call that routine in the datagrid's EditCommand event to
automatically refresh the data.

Regards
Joyjit
 
thanks mate.
also, i have a delete buttun column in the datagrid but i don't know what
code to put in. could you help me out there?

cheers
 
in regards to updating:

i have 5 dg's each representing a day of the week. It is a schedule. Now i
have added an update button which u can use to edit details of teh schedule
and update it if you need to. I have 1 access database with 1 table,
schedule, with 3 fields, Task_day, task_id, task_descript.. Now each dg
binds to the one dataset with multiple tablemappings. So i hhave 5
dataadpters, 1 dataset which contains tables (Task_day=monday, task_day
=tuesday etc) when i go to update the day hwoever, it doesn't totally
refresh, so if i change the task_day in the monday datagrid to Tuesday it
will stay in Monday dg until i close browser. other updates work. how do i
rectify this?
 
Back
Top