Click here to Skip to main content
16,006,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Socket Connecting to a C++ Socket Pin
DavinCreed20-Jun-05 12:22
DavinCreed20-Jun-05 12:22 
GeneralRe: C# Socket Connecting to a C++ Socket Pin
geo_m22-Jun-05 20:52
geo_m22-Jun-05 20:52 
QuestionMake ListViewItem in edit mode? Pin
sparks_lu17-Jun-05 10:53
sparks_lu17-Jun-05 10:53 
AnswerRe: Make ListViewItem in edit mode? Pin
Heath Stewart17-Jun-05 11:17
protectorHeath Stewart17-Jun-05 11:17 
Generalport forwarding Pin
cyrus10917-Jun-05 10:51
cyrus10917-Jun-05 10:51 
GeneralRe: port forwarding Pin
Dave Kreskowiak17-Jun-05 12:32
mveDave Kreskowiak17-Jun-05 12:32 
GeneralDataGrid Grouping Pin
samoore17-Jun-05 10:23
samoore17-Jun-05 10:23 
GeneralRe: DataGrid Grouping Pin
Heath Stewart17-Jun-05 11:40
protectorHeath Stewart17-Jun-05 11:40 
If you have established a DataRelation between the parent and child DataTables - and presumably you have since you are either using parent/child navigation or master/detail DataGrids - then you can handle an event when data changes for a row, get related child rows, and mark them all as being selected.

The easiest way is to have a boolean column for each of the parent and child rows of the DataTables in question. After assigning your DataTable (or DataSet with the DataGrid.DataMember set to the table name, which I recommend) handle the DataTable.ColumnChanged event. When that's fired you get a DataColumnChangeEventArgs.Row that gives you the specific row. On that, call DataRow.GetChildRows - passing in the data relationship name (or instance) that relate the parent and child tables. That returns you a DataRow[] array that you can loop through and set each row's boolean column you want set.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
QuestionAdding "MyClass" to a WinForm:Where?? Pin
...---...17-Jun-05 10:00
...---...17-Jun-05 10:00 
AnswerRe: Adding "MyClass" to a WinForm:Where?? Pin
Dave Kreskowiak17-Jun-05 10:36
mveDave Kreskowiak17-Jun-05 10:36 
GeneralRe: Adding "MyClass" to a WinForm:Where?? Pin
...---...17-Jun-05 11:18
...---...17-Jun-05 11:18 
GeneralRe: Adding "MyClass" to a WinForm:Where?? Pin
Dave Kreskowiak17-Jun-05 12:24
mveDave Kreskowiak17-Jun-05 12:24 
GeneralRe: Adding "MyClass" to a WinForm:Where?? Pin
...---...17-Jun-05 14:13
...---...17-Jun-05 14:13 
GeneralRe: Adding "MyClass" to a WinForm:Where?? Pin
Colin Angus Mackay17-Jun-05 12:51
Colin Angus Mackay17-Jun-05 12:51 
Answerwild guess Pin
DavidNohejl17-Jun-05 13:29
DavidNohejl17-Jun-05 13:29 
GeneralMy Article Updated Pin
Ahmed Erarslan17-Jun-05 9:04
Ahmed Erarslan17-Jun-05 9:04 
GeneralRe: My Article Updated Pin
Dave Kreskowiak17-Jun-05 10:31
mveDave Kreskowiak17-Jun-05 10:31 
QuestionHow run my application by click of my own file Pin
Sasuko17-Jun-05 8:50
Sasuko17-Jun-05 8:50 
AnswerRe: How run my application by click of my own file Pin
Heath Stewart17-Jun-05 11:23
protectorHeath Stewart17-Jun-05 11:23 
GeneralRe: How run my application by click of my own file Pin
Sasuko17-Jun-05 11:41
Sasuko17-Jun-05 11:41 
GeneralArray as parameter in webservice! Pin
myousufq17-Jun-05 8:34
myousufq17-Jun-05 8:34 
Questionwhat is an interface? Pin
Sasuko17-Jun-05 7:36
Sasuko17-Jun-05 7:36 
AnswerRe: what is an interface? Pin
Niklas Ulvinge17-Jun-05 8:21
Niklas Ulvinge17-Jun-05 8:21 
AnswerRe: what is an interface? Pin
Heath Stewart17-Jun-05 11:35
protectorHeath Stewart17-Jun-05 11:35 
Generalcolor coding images Pin
sami_bio@yahoo.com17-Jun-05 6:34
sami_bio@yahoo.com17-Jun-05 6:34 

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.