473,394 Members | 1,956 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,394 software developers and data experts.

datagrid vs datagridview

GS
seems to me both requires extra coding to do update to data bind form sql
adapter. however it is easier to customize the column width for
datagridview. for best practise which one should one use if one intend to
update the table in the bound slate?

For example user may add a row, change a row and even delete a row.

and what is the proper way to update? There seem to be Ondeletecommand, on
UpdateCOmmand,...

Oct 9 '06 #1
2 1498
GS,

Although it are two complete different controls, is in most scenario's the
datagridview in my idea very much easier to handle than the datagrid if you
need a column/row style control which is bounded to a datatable.

Just my opinion,

Cor

"GS" <gs**********************@msnews.Nomail.comschre ef in bericht
news:eA**************@TK2MSFTNGP04.phx.gbl...
seems to me both requires extra coding to do update to data bind form sql
adapter. however it is easier to customize the column width for
datagridview. for best practise which one should one use if one intend to
update the table in the bound slate?

For example user may add a row, change a row and even delete a row.

and what is the proper way to update? There seem to be Ondeletecommand,
on
UpdateCOmmand,...

Oct 10 '06 #2
GS
thx. I feel the same at least from designer's point of view to setup
customized column width

There seem to be quite a few post of not able to update the real database
using either.

With vast number of events in both controls, I can see easy confusion.

Can you enlighten me so I don't fall into that pit of nothing works to
update?

Actually I tried but failed so far using intrinsic events and members. In
some way even the Java Jtable seem easier to deal with of update, delete,
add rows to database

I am still plugging away at the tutorial form the built-in help for
datagrid

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
GS,

Although it are two complete different controls, is in most scenario's the
datagridview in my idea very much easier to handle than the datagrid if
you
need a column/row style control which is bounded to a datatable.

Just my opinion,

Cor

"GS" <gs**********************@msnews.Nomail.comschre ef in bericht
news:eA**************@TK2MSFTNGP04.phx.gbl...
seems to me both requires extra coding to do update to data bind form
sql
adapter. however it is easier to customize the column width for
datagridview. for best practise which one should one use if one intend
to
update the table in the bound slate?

For example user may add a row, change a row and even delete a row.

and what is the proper way to update? There seem to be
Ondeletecommand,
on
UpdateCOmmand,...



Oct 10 '06 #3

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

Similar topics

2
by: JochenZ | last post by:
Hello, I have a DataGrid(View) and a DataTable. The DataTable is displayed in the DataGridView: dataGridView.DataSource = theTable; The user is allowed to select some rows and then the...
1
by: Irfan | last post by:
hi, all In VB 2005 Beta i cant find dataGrid control in the toolbox, instead DataGridView is available. What is the differance between the two ? How can i get dataGrid Control? Thanks
5
by: ComputerStop | last post by:
I am attempting to print a datagridview. I have not found any method that works successfully. Has any one been successful with this?
3
by: reidarT | last post by:
I have a datagrid with columns. One of the columns are a textbox. I want the text in this column shown in a textbox outside the datagrid. How can I do that when clicking the actual row in the...
0
by: Brett Romero | last post by:
I've written a DataGrid class that inhertis from DataGrid. There's a lot of code in this class specific to the DataGrid's functionality. I mainly want to use the DataGridView for drop down combo...
2
by: Warex | last post by:
Hello I am having a problem with using the datagrid. I am attaching my data through a dataset via code to a datagridview.datasource. All if fine except if I make any changes to the datagrid the...
1
by: seanmle | last post by:
I want to build a windows application that has a datagrid filled with data. When a person modifies information on a single cell, it updates the database without the user having to click on a save...
2
by: cj | last post by:
I was looking over some of my 2003 code today (see below) that loads a foxpro table via oledb connection. I used a sub "autosizecolumns" I found on the web but I never quite understood why they...
2
by: Rob | last post by:
After I type my DataGrid name in the code, I am expecting to have a couple options (methods ?) available... I see them in sample code, but they are not available for me to select. ...
3
by: frostbb | last post by:
Greetings, We're starting to transition our legacy C# apps from earlier versions to VS2008 versions. Many of our apps allow the user to select a row from a DataGrid into a 'Data Edit' area...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.