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

Insert from datagrid

on previous version to add data in datagrid as easy, we just input value in
gird, when we move pointer record automatically save to table

in vb.net iam fell a stupid man to insert record in datagrid using ado.net,
is any way to do that, please sample code and thanks any way.
Nov 22 '05 #1
2 2169
I haven't used VB.NET very much but ADO.NET
is "disconnected" so updating a database is a two step
process - update the in memory dataset, then update the
database using SQL statements (need a dataconnection, data
adapter, Insert/Update commands and about two dozen lines
of code). It's actually a bit hairy compared to the
Recordset based ADO model especially for Windows
applications where you really want a connected recordset.
You may want to use ADO, instead of ADO.NET, if it's a
windows app.

-----Original Message-----
on previous version to add data in datagrid as easy, we just input value ingird, when we move pointer record automatically save to table
in vb.net iam fell a stupid man to insert record in datagrid using ado.net,is any way to do that, please sample code and thanks any way.

.

Nov 22 '05 #2
I haven't used VB.NET very much but ADO.NET
is "disconnected" so updating a database is a two step
process - update the in memory dataset, then update the
database using SQL statements (need a dataconnection, data
adapter, Insert/Update commands and about two dozen lines
of code). It's actually a bit hairy compared to the
Recordset based ADO model especially for Windows
applications where you really want a connected recordset.
You may want to use ADO, instead of ADO.NET, if it's a
windows app.

-----Original Message-----
on previous version to add data in datagrid as easy, we just input value ingird, when we move pointer record automatically save to table
in vb.net iam fell a stupid man to insert record in datagrid using ado.net,is any way to do that, please sample code and thanks any way.

.

Nov 22 '05 #3

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

Similar topics

3
by: Rameshika | last post by:
Hi All How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime And how can the user...
0
by: Christopher | last post by:
I AM GETTING A SYSTEM.DATA.SQLCLIENT.SQLEXCEPTION ERROR WHEN ATTEMPTING TO INSERT DATA INTO A SINGLE TABLE THROUGH A GRID //If this is due to a spelling error, i will //inflict a ritual...
1
by: Serdge Kooleman | last post by:
i have a query: select id, name from Dictionary field "id" is uniqueidentifier (primary key id is not null, and not identity !) i show only "name" in the dataGrid how to set up new id when i...
5
by: SSP | last post by:
Dear ASP.NETers, How would I insert multiple rows of data from a web form? Are there any tute's and stuff around. Couldn't find any myself. Thanks in advance. SSP
1
by: tshad | last post by:
I can't seem to get insert into a DataGrid to work. I am using an example from the net and made changes to work on my computer. The grid comes up fine. The edit boxes in the footer are there. ...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
1
by: schapopa | last post by:
Hi Everybody, I have a datagrid and I am using sqlcommandbuilder for update and insert of the data. I have two questions related to insert new row in datagrid. When I get to the new row how...
1
by: glenn | last post by:
Hi folks, I am using an Access database, VB.NET and ADO.NET working with a DataGrid control. MY datagrid table has both a date_sent and a date_ans field. When I Insert a record in my SQL...
0
by: danishce | last post by:
Hello, I want to insert data directly into my windows form data grid and load a combobox(userid) in the 1st column of data grid,a textbox(password) in 2nd column of datagrid. The code for insert...
5
by: Me LK | last post by:
I need to add a line to choose a size into a dropdown . Since I have the dropdown nested inside a datagrid this is not working.When a page displays there are several rows of dropdowns but only the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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,...
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...

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.