Click here to Skip to main content
15,911,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 7:33
leppie8-Jan-04 7:33 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 8:14
leppie8-Jan-04 8:14 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 8:02
pahluwalia8-Jan-04 8:02 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 9:03
Kentamanos8-Jan-04 9:03 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia9-Jan-04 2:45
pahluwalia9-Jan-04 2:45 
GeneralMultiple table data in dataGrid Pin
Hayat8-Jan-04 2:41
Hayat8-Jan-04 2:41 
GeneralRe: Multiple table data in dataGrid Pin
Mazdak8-Jan-04 3:18
Mazdak8-Jan-04 3:18 
GeneralRe: Multiple table data in dataGrid Pin
Heath Stewart8-Jan-04 6:04
protectorHeath Stewart8-Jan-04 6:04 
This will require a value for the DataGrid.DataMember property since DataSet is an IListSource implementation. If you don't, you'll see a DataGrid with two collapsable (in the collapsed state) rows for each table. It won't give you a "flat" look, and most likely both tables will have different columns anyway.

A couple of other alternatives might be to merge the two tables together if you don't need to update an RDBMS with the changes to the DataSet. You could also used a couple of DataGridTableStyles (see the DataGrid.TableStyles property for more information) to control the output of each table depending on the table name, although this won't show them simultaneously. You can programmatically switch from one table style to another hence showing both tables formatted how you want them.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralInexplicable errors on forms. Pin
Martin Cross8-Jan-04 0:39
Martin Cross8-Jan-04 0:39 
GeneralRe: Inexplicable errors on forms. Pin
Aryo Handono8-Jan-04 1:14
professionalAryo Handono8-Jan-04 1:14 
GeneralRe: Inexplicable errors on forms. Pin
Heath Stewart8-Jan-04 5:56
protectorHeath Stewart8-Jan-04 5:56 
GeneralRe: Inexplicable errors on forms. Pin
Martin Cross8-Jan-04 22:38
Martin Cross8-Jan-04 22:38 
GeneralRe: Inexplicable errors on forms. Pin
Niels Penneman8-Jan-04 10:50
Niels Penneman8-Jan-04 10:50 
GeneralDisposing Audio after finished playing Pin
thomasa8-Jan-04 0:19
thomasa8-Jan-04 0:19 
GeneralRe: Disposing Audio after finished playing Pin
Heath Stewart8-Jan-04 5:51
protectorHeath Stewart8-Jan-04 5:51 
GeneralDeveloping a Client/Server application Pin
Kingvest7-Jan-04 23:49
Kingvest7-Jan-04 23:49 
GeneralRe: Developing a Client/Server application Pin
Guillermo Rivero8-Jan-04 5:02
Guillermo Rivero8-Jan-04 5:02 
GeneralRe: Developing a Client/Server application Pin
Kingvest8-Jan-04 5:18
Kingvest8-Jan-04 5:18 
GeneralRe: Developing a Client/Server application Pin
Guillermo Rivero8-Jan-04 5:32
Guillermo Rivero8-Jan-04 5:32 
GeneralRe: Developing a Client/Server application Pin
Kingvest8-Jan-04 5:36
Kingvest8-Jan-04 5:36 
GeneralRe: Developing a Client/Server application Pin
Niels Penneman8-Jan-04 6:22
Niels Penneman8-Jan-04 6:22 
GeneralRe: Developing a Client/Server application Pin
Kingvest8-Jan-04 6:26
Kingvest8-Jan-04 6:26 
GeneralRe: Developing a Client/Server application Pin
Niels Penneman8-Jan-04 7:20
Niels Penneman8-Jan-04 7:20 
GeneralRe: Developing a Client/Server application Pin
Guillermo Rivero8-Jan-04 6:28
Guillermo Rivero8-Jan-04 6:28 
GeneralRe: Developing a Client/Server application Pin
Heath Stewart8-Jan-04 5:46
protectorHeath Stewart8-Jan-04 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.