Hi all,
I have a datagrid which i am using for updating the data to the database. It
works fine for single row data however when i have multiple rows(records)
associated with the same criteria(billno) it updates both the rows with the
values for the row i updated.
I thought of reading both the rows into a dataset and update that to the
database table but am not able to do so.
Any help will be appreciated.
Thanks,
Abby 4 1252
Abby,
How do you populate that datagrid, your question seems a little bit strange
to me.
Cor
"Abby" <Ab**@discussions.microsoft.comschreef in bericht
news:AE**********************************@microsof t.com...
Hi all,
I have a datagrid which i am using for updating the data to the database.
It
works fine for single row data however when i have multiple rows(records)
associated with the same criteria(billno) it updates both the rows with
the
values for the row i updated.
I thought of reading both the rows into a dataset and update that to the
database table but am not able to do so.
Any help will be appreciated.
Thanks,
Abby
Hi Cor,
I use a dataset. I populate it and then bind it to the datagrid.
Let me explain the process again. Considering the dataset has 2 records in
it which are associated to the same billno say record 1 and record2. I need
to update the record 2 in the dataset.
But when i click on the update link after editing the data it updates both
the records with the same information.
so i was trying to catch the record that needs to be updated through a
dataset which i can create from the databind befor the update method is
executed.
Waiting for ur reply.
Thanks,
Abby
"Cor Ligthert [MVP]" wrote:
Abby,
How do you populate that datagrid, your question seems a little bit strange
to me.
Cor
"Abby" <Ab**@discussions.microsoft.comschreef in bericht
news:AE**********************************@microsof t.com...
Hi all,
I have a datagrid which i am using for updating the data to the database.
It
works fine for single row data however when i have multiple rows(records)
associated with the same criteria(billno) it updates both the rows with
the
values for the row i updated.
I thought of reading both the rows into a dataset and update that to the
database table but am not able to do so.
Any help will be appreciated.
Thanks,
Abby
Abby,
Is this a web datagrid or a windowforms datagrid, I assume web, but I am
still not sure,
Cor
"Abby" <Ab**@discussions.microsoft.comschreef in bericht
news:DB**********************************@microsof t.com...
Hi Cor,
I use a dataset. I populate it and then bind it to the datagrid.
Let me explain the process again. Considering the dataset has 2 records in
it which are associated to the same billno say record 1 and record2. I
need
to update the record 2 in the dataset.
But when i click on the update link after editing the data it updates both
the records with the same information.
so i was trying to catch the record that needs to be updated through a
dataset which i can create from the databind befor the update method is
executed.
Waiting for ur reply.
Thanks,
Abby
"Cor Ligthert [MVP]" wrote:
>Abby,
How do you populate that datagrid, your question seems a little bit strange to me.
Cor
"Abby" <Ab**@discussions.microsoft.comschreef in bericht news:AE**********************************@microso ft.com...
Hi all,
I have a datagrid which i am using for updating the data to the
database.
It
works fine for single row data however when i have multiple
rows(records)
associated with the same criteria(billno) it updates both the rows with
the
values for the row i updated.
I thought of reading both the rows into a dataset and update that to
the
database table but am not able to do so.
Any help will be appreciated.
Thanks,
Abby
Cor,
its a web datagrid .
Abby
"Cor Ligthert [MVP]" wrote:
Abby,
Is this a web datagrid or a windowforms datagrid, I assume web, but I am
still not sure,
Cor
"Abby" <Ab**@discussions.microsoft.comschreef in bericht
news:DB**********************************@microsof t.com...
Hi Cor,
I use a dataset. I populate it and then bind it to the datagrid.
Let me explain the process again. Considering the dataset has 2 records in
it which are associated to the same billno say record 1 and record2. I
need
to update the record 2 in the dataset.
But when i click on the update link after editing the data it updates both
the records with the same information.
so i was trying to catch the record that needs to be updated through a
dataset which i can create from the databind befor the update method is
executed.
Waiting for ur reply.
Thanks,
Abby
"Cor Ligthert [MVP]" wrote:
Abby,
How do you populate that datagrid, your question seems a little bit
strange
to me.
Cor
"Abby" <Ab**@discussions.microsoft.comschreef in bericht
news:AE**********************************@microsof t.com...
Hi all,
I have a datagrid which i am using for updating the data to the
database.
It
works fine for single row data however when i have multiple
rows(records)
associated with the same criteria(billno) it updates both the rows with
the
values for the row i updated.
I thought of reading both the rows into a dataset and update that to
the
database table but am not able to do so.
Any help will be appreciated.
Thanks,
Abby
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve Donnor |
last post by:
Here's my question..
I have a Dataset which has populated a datagrid with information from an AS400
That SQL looks like this
"Select MASYS, MAFLD, MADATA, MAEQV from QS36F.MAPDATA WHERE MASYS =...
|
by: Bil Muh |
last post by:
Esteemede Developers,
I would like to Thank All of You in advance for your sincere guidances.
I am developing a software using Visual C++ .NET Standard Edition with
Windows Form (.NET)...
|
by: AW |
last post by:
I am creating my columns automatically at run time, but I also want to align
the text columns to the left and the number columns to the right. Is there
anyway to do this?? I can't see how to...
|
by: Diego TERCERO |
last post by:
Hi...
I'm working on a tool for editing text resources for a family of software
product my company produces.
These text resources are found in a SQL Server database, in a table called...
|
by: Patrick |
last post by:
I'm working on a contact management application, and need a hand with one
aspect...
Here's what I want to create:
------------------------------------
A form split into two parts. There is a...
|
by: ASP Yaboh |
last post by:
I have an ArrayList of data gathered from a database. I want to create a web
page from this data by creating a <table>, each cell in each row displays the
appropriate data. One of those cells in...
|
by: Roger |
last post by:
I am using visual studio 2003. I user the server explorer and drag a table
onto a webform.
The program creates a "Connection" and an SQLDataAdapter Generates the
"Select, Insert, Delete"...
|
by: A_PK |
last post by:
I have problem databinding the DataGrid with DataView/DataSet after the
filter...
I create the following proceudre in order for user to filter as many as they
want, but the following code is only...
|
by: max |
last post by:
Hello,
I am a newbye, and I'm trying to write a simple application.
I have five tables with three columns; all tables are identical; I need to
change some data in the first table and let VB...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |