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

C#

 
QuestionTiming out a method [modified] Pin
martin_hughes26-Jul-07 8:46
martin_hughes26-Jul-07 8:46 
AnswerRe: Timing out a method Pin
Justin Perez26-Jul-07 8:57
Justin Perez26-Jul-07 8:57 
GeneralRe: Timing out a method Pin
martin_hughes26-Jul-07 9:15
martin_hughes26-Jul-07 9:15 
AnswerRe: Timing out a method Pin
Le centriste26-Jul-07 10:17
Le centriste26-Jul-07 10:17 
QuestionClass declaration inside loops Pin
rsaint2726-Jul-07 7:18
rsaint2726-Jul-07 7:18 
AnswerRe: Class declaration inside loops Pin
PhilDanger26-Jul-07 7:29
PhilDanger26-Jul-07 7:29 
GeneralRe: Class declaration inside loops Pin
rsaint2726-Jul-07 7:55
rsaint2726-Jul-07 7:55 
GeneralRe: Class declaration inside loops Pin
Paul Conrad26-Jul-07 8:26
professionalPaul Conrad26-Jul-07 8:26 
GeneralRe: Class declaration inside loops Pin
rsaint2726-Jul-07 10:40
rsaint2726-Jul-07 10:40 
AnswerRe: Class declaration inside loops Pin
Guffa26-Jul-07 11:05
Guffa26-Jul-07 11:05 
GeneralRe: Class declaration inside loops Pin
PhilDanger26-Jul-07 11:12
PhilDanger26-Jul-07 11:12 
QuestionDataGridView - Binding to an Object Pin
BigPMcCoy26-Jul-07 6:55
BigPMcCoy26-Jul-07 6:55 
I am trying to bind a DataGridView to a Collection that implaments IList<t>. The Entities in the collection contain properties that will be displayed as columns in the DataGridView. This all works fine.

One of the properties in the Entity is itself another Entity. I want the DataGridView to bind to a property of the nested Entity. How would I acomplish this?

Example Description:
I want to bind a DataGridView to the EmployeeCollection. The columns I want to display are EmpNumber, EmpName.LastName, EmpName.FirstName. I have tried setting the DataPropertyName on a column in the DataGridView to EmpName.FirstName and this does not work. I would like to solve this issue without exposing the properties to the Name Class in the Employee Class.

Example:
public class EmployeeCollection : List<employee>{

}

public class Employee{
public string EmpNumber { get; set; }
public Name EmpName{ get; set; }

}

public class Name{
public string FirstName { get; set; }
public string LastName { get; set; }

}

Thanks for your help.

Patrick McCoy
QuestionDataGridView Checkbox not populating when binding from ObjectDataSource [modified] Pin
Tristan Rhodes26-Jul-07 6:28
Tristan Rhodes26-Jul-07 6:28 
AnswerRe: DataGridView Checkbox not populating when binding from ObjectDataSource Pin
Eliz.k26-Jul-07 21:39
Eliz.k26-Jul-07 21:39 
GeneralRe: DataGridView Checkbox not populating when binding from ObjectDataSource Pin
Tristan Rhodes26-Jul-07 23:25
Tristan Rhodes26-Jul-07 23:25 
QuestionDataSet - mapping the colums Pin
auloepid26-Jul-07 5:23
auloepid26-Jul-07 5:23 
AnswerRe: DataSet - mapping the colums Pin
Tarakeshwar Reddy26-Jul-07 5:31
professionalTarakeshwar Reddy26-Jul-07 5:31 
QuestionSerial To USB Communication Pin
Michael Fritzius26-Jul-07 4:41
professionalMichael Fritzius26-Jul-07 4:41 
AnswerRe: Serial To USB Communication Pin
led mike26-Jul-07 5:00
led mike26-Jul-07 5:00 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius26-Jul-07 5:15
professionalMichael Fritzius26-Jul-07 5:15 
GeneralRe: Serial To USB Communication Pin
led mike26-Jul-07 5:20
led mike26-Jul-07 5:20 
AnswerRe: Serial To USB Communication Pin
Luc Pattyn26-Jul-07 5:20
sitebuilderLuc Pattyn26-Jul-07 5:20 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius26-Jul-07 6:06
professionalMichael Fritzius26-Jul-07 6:06 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn26-Jul-07 6:15
sitebuilderLuc Pattyn26-Jul-07 6:15 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius26-Jul-07 6:55
professionalMichael Fritzius26-Jul-07 6:55 

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.