473,405 Members | 2,262 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,405 software developers and data experts.

Is it possible to have different columns of a datagrid bound to different datatables?


Is it possible to have different columns of a datagrid bound to
different datatables?

I am working on a project and the specks have suddenly changed. Now a
item can have multiple reports/ versions assigned to it. But they like
the look of the datagrid and want to keep it. So now I have one column
that can have more than one row. If anyone has any suggestion it would
be very helpful.

Thanks
Tom

*** Sent via Developersdex http://www.developersdex.com ***
Feb 16 '06 #1
2 1331
AFAIK, A Datagrid can be bound to a DataSet or a DataView.
And a DataSet or a DataView can in turn contain multiple DataTables.

So, as long as all your DataTables are present in the same Dataset or
Dataview,
the answer in my opinion is a resounding YES !

Regards,

Cerebrus.

Feb 16 '06 #2
"Thomas Beyerlein" <tb***@yahoo.com> schrieb

Is it possible to have different columns of a datagrid bound to
different datatables?

I am working on a project and the specks have suddenly changed. Now
a item can have multiple reports/ versions assigned to it. But they
like the look of the datagrid and want to keep it. So now I have one
column that can have more than one row. If anyone has any suggestion
it would be very helpful.


I don't see the relation to the VB.Net language. Have a look here:

microsoft.public.dotnet.framework.windowsforms.dat abinding
microsoft.public.dotnet.framework.windowsforms.con trols
Armin
Feb 16 '06 #3

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

Similar topics

1
by: Bhargavan | last post by:
Hi, I am using a datagrid on a windows form. The datasource of the grid is bound to a class array. It works just fine. But I am not sure how to hide some columns in the grid programmatically. Any...
3
by: Allen K | last post by:
Hi, I'm programmatically creating a HyperLink column for my datagrd ( in addition to Bound Columns created through the VS.NET Visual Interface ). However, when a Postback occurs, this column...
2
by: Alex | last post by:
I'm wondering how I can add data to the datakey property of the DataGrid. It seems to be read only. How can I populate it? I'm using data bound columns, however do not autogenerate the entire grid...
2
by: rooster575 | last post by:
I would like my datagrid to have the following format: ID - Name - Phone Title - Birthday - email Is this possible for the header and result items? Thanks.
0
by: klynn | last post by:
I queried a series of fields from a database and passed into a datatable. Then bound this to a datagrid. I need to hide 2 of the colums. This doesnt seem to be working the standard way. (with...
7
by: Doug Bell | last post by:
Hi, How can I determine the number of columns in a DataGrid? What I am trying to do is to build a function that will resize the last column to fill the remaining space in the DataGrid....
4
by: Greg | last post by:
I have a VB.NET Windows application with bound DataGrid control with it’s DataSource property set to a DataSet object. The DataSet object is created from an XML Schema. I would like to define...
4
by: Rich | last post by:
Hello, I have a one datagrid that will be based on different datatables. One datatable may have 7 columns, another 15... With the tables that have more columns, I have been manually dragging...
7
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for windows applciation. I have a form with 1 datagrids whose datasource comes from 2 dataview that are based on 2 dataset datatables(depends on the stat of the...
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: 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
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,...
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
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,...

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.