Click here to Skip to main content
15,888,401 members
Home / Discussions / C#
   

C#

 
QuestionMeta Tags in RTF file? Pin
sachinkalse8-Jun-04 23:05
sachinkalse8-Jun-04 23:05 
AnswerRe: Meta Tags in RTF file? Pin
Heath Stewart9-Jun-04 2:33
protectorHeath Stewart9-Jun-04 2:33 
GeneralRemoting in Windows CE Pin
evilnut8-Jun-04 20:56
evilnut8-Jun-04 20:56 
GeneralRe: Remoting in Windows CE Pin
Heath Stewart9-Jun-04 2:25
protectorHeath Stewart9-Jun-04 2:25 
GeneralPosting records in 2 data grids Pin
orpus8-Jun-04 20:25
orpus8-Jun-04 20:25 
GeneralRe: Posting records in 2 data grids Pin
Vasek8-Jun-04 22:11
Vasek8-Jun-04 22:11 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:17
protectorHeath Stewart9-Jun-04 2:17 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:20
protectorHeath Stewart9-Jun-04 2:20 
You do that by setting up a DataRelation between the PK and FK in your two DataTables. See the .NET Framework SDK for more information about the DataRelation class.

Then, in the first DataGrid, set the DataMember to be the name of the first table. The DataSource would be the DataSet. For the second DataGrid, set the DataMember to FirstTableName.RelationshipName (of course substituting the first table name and relationship name you specify for the DataRelation). The DataGrids will handle the master/detail view automatically for you then.

For more information about this, see the DataGrid.DataMember property documentation in the .NET Framework SDK.

 

Microsoft MVP, Visual C#
My Articles
Questionup,down,right,left keys not working with KeyDown event? Pin
User 9625788-Jun-04 20:20
User 9625788-Jun-04 20:20 
AnswerRe: up,down,right,left keys not working with KeyDown event? Pin
Syed Abdul Khader8-Jun-04 23:08
Syed Abdul Khader8-Jun-04 23:08 
GeneralParameters in C# Web Programming Pin
bdi0078-Jun-04 17:22
bdi0078-Jun-04 17:22 
GeneralRe: Parameters in C# Web Programming Pin
Heath Stewart8-Jun-04 17:23
protectorHeath Stewart8-Jun-04 17:23 
GeneralLoading Dlls through C# Pin
ganeshvijay8-Jun-04 16:43
ganeshvijay8-Jun-04 16:43 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart8-Jun-04 17:22
protectorHeath Stewart8-Jun-04 17:22 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart9-Jun-04 2:16
protectorHeath Stewart9-Jun-04 2:16 
GeneralPrint Picture Pin
The_Soul_Of_Rock8-Jun-04 16:21
The_Soul_Of_Rock8-Jun-04 16:21 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 17:26
protectorHeath Stewart8-Jun-04 17:26 
GeneralRe: Print Picture Pin
The_Soul_Of_Rock8-Jun-04 17:58
The_Soul_Of_Rock8-Jun-04 17:58 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 18:02
protectorHeath Stewart8-Jun-04 18:02 
GeneralAbout case assembly version lessoned Pin
pig12348-Jun-04 16:11
pig12348-Jun-04 16:11 
GeneralRe: About case assembly version lessoned Pin
Heath Stewart8-Jun-04 17:32
protectorHeath Stewart8-Jun-04 17:32 
GeneralRe: About case assembly version lessoned Pin
pig12348-Jun-04 19:29
pig12348-Jun-04 19:29 
QuestionProject report generation using GDI+ ? Pin
sachinkalse8-Jun-04 14:48
sachinkalse8-Jun-04 14:48 
AnswerRe: Project report generation using GDI+ ? Pin
Heath Stewart8-Jun-04 17:43
protectorHeath Stewart8-Jun-04 17:43 
QuestionHow do i programatically restart the current website or appdomain Pin
kris.mackintosh8-Jun-04 12:33
kris.mackintosh8-Jun-04 12:33 

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.