c# datagrid updating

  • Thread starter Thread starter Tim Bird
  • Start date Start date
T

Tim Bird

I am writing SQL enterprise type application in c# and allowing ht user to
execute queries, etc. The results are displayed in a grid using data
adapteres, etc. Do I really have to write routines to create the Update
queries for the adapter in order for the grid to be updated, etc. I suppose
I'm spoiled by having used delphi where I just slap stuff on a form and it
does most of the work for me.

Are data grids in c# really that convoluted or am I missign something?
 
Hi Tim ,

What i think is there are two ways to go about doing this :

1. You can have Update Buttons in your Grid , as one of the column and
user locally update the stuff in to the grid , by making it editable and
on committing , update the Dataset and finally db .

2. Another one is the harder way of first updating the db , refreshing
the dataset then and re binding the grid .

Since , i have not worked on delphi so can't comment , but invariably in
this case u need to writes methods to accomplish the task .

- Mrinal
 
Thanks for your reply. Basically Delphi spoilt you by handling all the work
for you. You have to do it yourself in c# as I have figured out and you say.
Oh well....
 
Back
Top