473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

c# datagrid updating

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?
Nov 17 '05 #1
2 1290
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

Tim Bird wrote:
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?

Nov 17 '05 #2
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....
"Mrinal Kamboj" <mr***********@oracle.com> wrote in message
news:zR************@news.oracle.com...
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

Tim Bird wrote:
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?

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: cwbp17 | last post by:
Have two tables that have a FK relationship on ID column. Have one datagrid that displays all of the columns of both tables. What's the best approach on updating a row from the datagrid back to...
2
by: Stephan Steiner | last post by:
Hi I'm using several DataTables in my program which are updated periodically. At the same I have those tables bound to DataGrids in my GUI. So far I've been doing all the processing in the same...
2
by: Jim | last post by:
In my Win App, I have a datagrid that's bound to a dataset. When the form loads, the datagrid fills. How can I add an empty row to the end of the datagrid during a button click (similar to...
7
by: Brian Conway | last post by:
Can anyone give me an example of how I can loop through a datagrid and have it run a stored procedure each time it loops?
4
by: Glenn Owens | last post by:
I have a DataGrid web control which I've dynamically populated with template columns to be used for bulk-editting. Generally, all of the columns are textbox and/or dropdownlist child controls. ...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
0
by: cwbp17 | last post by:
Have two oracle tables that have a FK relationship on ID column. Have one datagrid that displays all of the columns of both tables. What's the best approach on updating a row from the datagrid...
0
by: cwbp17 | last post by:
I'm having trouble updating individual datagrid cells. Have two tables car_master (columns include Car_ID, YEAR,VEHICLE) and car_detail (columns include Car_ID,PRICE,MILEAGE,and BODY);both tables...
2
by: Greg | last post by:
I'm using the Framework 1.1, so I don't have access to the new DataGridView object. What I'm wondering is, is there a really simple way to bind a plain datagrid to a database in such a way that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.