473,386 Members | 1,766 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.

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 1147
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,...
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: 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
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
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
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
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,...

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.