473,749 Members | 2,636 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Update DataGrid2 based on value of DataGrid1

Dear All,

Kindly let me know how to update datagrid2 based on value of
datagrid1, I have one datagrida filled with current sale and its
updating continuously, I need to show in datagrid2 summaries view of
datagrid1, I dont want to query again from database, I just want to
use datagrid1's current record to use to display summay in datagrid2

Thank you in anticipation
Nov 11 '08 #1
1 1672
On Nov 11, 1:17*am, "irfan.ahme d" <irfan.khi...@g mail.comwrote:
Dear All,

Kindly let me know how to update datagrid2 based on value of
datagrid1, I have one datagrida filled with current sale and its
updating continuously, I need to show in datagrid2 summaries view of
datagrid1, I dont want to query again from database, I just want to
use datagrid1's current record to use to display summay in datagrid2

Thank you in anticipation

Irfan,

You might look into creating a master-detail relationship between your
two DataGrids. Your datagrid1 will list sales and datagrid2 will show
the summaries view you mention when a row in datagrid1 is selected.

Check out this link:
http://msdn.microsoft.com/en-us/libr...28(VS.71).aspx

I assume your using .NET 1.x since you mention the DataGrid.

If you're using .NET 2.0 check out:
http://msdn.microsoft.com/en-us/libr...x4(VS.80).aspx

-Jay
Nov 12 '08 #2

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

Similar topics

0
869
by: Bil Muh | last post by:
Hello Developers, I am developing an application by using VC++ .NET v2003 at Windows Forms ..NET. In my application, I have two threads, which are working background. They receive double values from two different Sockets. Then these received double values should be shown on the three different data grid depending on double-value type. GroupA values at DataGrid1, GroupB values at DataGrid2 and GroupC values at DataGrid3. There are four...
1
1592
by: MrMike | last post by:
Hi. My application has dozens of datagrids but for some reason an exception occurs when one of them is updated. When a user edits a datagrid row and then clicks 'Update' the following exception occurs: --------------------- "Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index" --------------------- I've placed breakpoints with the UpdateCommand event, but...
4
2147
by: Jonathan Upright | last post by:
Greetings to anyone who can help: I'm using WebMatrix to make ASP.NET pages, and I chose the "Editable DataGrid" at the project selector screen. As you may know, it defaults to the Microsoft SQL database "pubs". I've followed the instructions in the comments and also changed everything pertaining to SQL over to OLEDB. (i.e. Changed SqlDbType. to OleDbType.) I also changed the datafield names and variable names accordingly. The page...
0
938
by: kevin.mcgrane | last post by:
Hi I have a C# application with a couple of datagrids. Datagrid1 datasource is pointing to a storeprocedure that returns orders. I want to be able to double click datagrid1 and assign the row I double clicked to datagrid2. I would also like to be able to double click other rows from datagrid1 to be added to datagrid2 until I have a subset of datagrid1 rows in datagrid2
0
1059
by: kevin | last post by:
Hi I have a C# application with a couple of datagrids. Datagrid1 datasource is pointing to a storeprocedure that returns orders. I want to be able to double click datagrid1 and assign the row I double clicked to datagrid2. I would also like to be able to double click
2
1580
by: andrew.roberts | last post by:
This is my second post now on this subject has I seem to be getting no where and the problem is really starting to bug me now. I can get a datagrid into an editable state but then neither the Update or Cancel events seem to be firing and I am at a lost to explan why. My code is below, if any one can tell me what I am doing wrong then that would be excellent! using System; using System.Collections; using System.ComponentModel;
0
1194
by: Zorglub | last post by:
Hi, I have a windos form with two datagrids Master and Detail, I use a dataset with two datatable and a relation between Table1 and Table2. I set the datagrid like : DataViewManager dsView = myDataSet.DefaultViewManager; dataGrid1.DataSource = dsView; dataGrid1.DataMember = "NAMEFIRSTTABLE"; dataGrid2.DataSource = dsView; dataGrid2.DataMember = "NAMERELATION";
5
2599
by: Stephen Plotnick | last post by:
I'm very new to VB.NET 2003 Here is what I have accomplished: MainSelectForm - Selects an item In a public class I pass a DataViewRow to ItemInformation1 Form ItemInformation2 Form
1
6476
by: Sharon | last post by:
Hello All, Is it possible to update Sql Table through DataGrid. I have a DataGrid which is being populated through a stored procedure, all i wanted to do is to update one field (FieldName-Authorised) which has a datatype bit through DataGrid but not sure how to go about it. Any Ideas Guys on this one, your help is greatly appreciated. This is the procedure used to populate the datagrid, The primary key for the table is EntryID which...
0
8833
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8257
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6801
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.