473,466 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Datagrid on two tables

Vik
Is it possible to have a dataview and a datagrid based on two or more tables
in a dataset?

Thank you.
Nov 18 '05 #1
4 1148
I think you will have to specify the table... why would you want to though?
I mean I can't think of a use. if you need data from both use a join, use
the resulting view to display

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Vik" <viktorum@==hotmail.com==> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
Is it possible to have a dataview and a datagrid based on two or more tables in a dataset?

Thank you.

Nov 18 '05 #2
Vik
If I use a view (one to many), I can't update the data. So, I want two
separate tables in the dataset that I can updated and I want the datagrid
representing the join of these tables.

Vik

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eW**************@tk2msftngp13.phx.gbl...
I think you will have to specify the table... why would you want to though? I mean I can't think of a use. if you need data from both use a join, use
the resulting view to display

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Vik" <viktorum@==hotmail.com==> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
Is it possible to have a dataview and a datagrid based on two or more

tables
in a dataset?

Thank you.


Nov 18 '05 #3
Are you using a data adapter and a command builder to do the update?

In that case, you can change the select statement of the data adapter to be
a SELECT with just the columns from the first table, generate the command
builder and do the update. Then change the select statement to be a SELECT
with just the columns from the second table, generate the command builder,
and do the update.

That way your original query can be a join, but then using this method you
should be able to update both database tables.

"Vik" <viktorum@==hotmail.com==> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If I use a view (one to many), I can't update the data. So, I want two
separate tables in the dataset that I can updated and I want the datagrid
representing the join of these tables.

Vik

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eW**************@tk2msftngp13.phx.gbl...
I think you will have to specify the table... why would you want to

though?
I mean I can't think of a use. if you need data from both use a join, use the resulting view to display

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Vik" <viktorum@==hotmail.com==> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
Is it possible to have a dataview and a datagrid based on two or more

tables
in a dataset?

Thank you.



Nov 18 '05 #4
Vik
Thank you.

"Marina" <so*****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Are you using a data adapter and a command builder to do the update?

In that case, you can change the select statement of the data adapter to be a SELECT with just the columns from the first table, generate the command
builder and do the update. Then change the select statement to be a SELECT
with just the columns from the second table, generate the command builder,
and do the update.

That way your original query can be a join, but then using this method you
should be able to update both database tables.

"Vik" <viktorum@==hotmail.com==> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If I use a view (one to many), I can't update the data. So, I want two
separate tables in the dataset that I can updated and I want the datagrid
representing the join of these tables.

Vik

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eW**************@tk2msftngp13.phx.gbl...
I think you will have to specify the table... why would you want to

though?
I mean I can't think of a use. if you need data from both use a join,

use the resulting view to display

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Vik" <viktorum@==hotmail.com==> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
> Is it possible to have a dataview and a datagrid based on two or more tables
> in a dataset?
>
> Thank you.
>
>



Nov 18 '05 #5

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

Similar topics

1
by: xrow | last post by:
Hello I have a simple webservice / c# application that receives data from server and prints the data in the asp:datagrid control I have problem when sorting data in datagrid I have created...
5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
2
by: Josef Meile | last post by:
Hi, I'm using a ComboBox, some Textboxes, and a DataGrid to represent a many-to-many relationship between Person and Course. Each time that I change the value in the ComboBox (which for now is...
2
by: enak | last post by:
I can not get my datagrid to page. I have a datagrid that I can sort 2 of the columns. This works great. I added paging and when I display the dg it shows 5 pages. (I am showing page numbers at...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
7
by: CanoeGuy | last post by:
I have been trying for the last two weeks to display a dynamic DataGrid. The data that I'm pulling from a SQL Server DB will have whole columns that will be either NULL or 0. I want to display...
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
3
by: Datatable Dataset Datagrid help | last post by:
Hi I am somewhat confused, I am new at VB.net I use XML data, I have a datagrid, I created a datatable so that I can create a custom format like true is this graphic false is this graphic and...
17
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...
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
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...
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.