Click here to Skip to main content
15,916,412 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementation in C# Pin
Colin Angus Mackay26-May-05 3:16
Colin Angus Mackay26-May-05 3:16 
GeneralRe: Implementation in C# Pin
S. Senthil Kumar26-May-05 4:24
S. Senthil Kumar26-May-05 4:24 
GeneralWhy toolbar buttons doesn't care of CausesValidation Pin
Itanium26-May-05 0:38
Itanium26-May-05 0:38 
GeneralRe: Why toolbar buttons doesn't care of CausesValidation Pin
Luis Alonso Ramos26-May-05 5:12
Luis Alonso Ramos26-May-05 5:12 
GeneralRe: Why toolbar buttons doesn't care of CausesValidation Pin
Luis Alonso Ramos26-May-05 5:13
Luis Alonso Ramos26-May-05 5:13 
GeneralRe: Why toolbar buttons doesn't care of CausesValidation Pin
Itanium31-May-05 22:42
Itanium31-May-05 22:42 
GeneralRe: Why toolbar buttons doesn't care of CausesValidation Pin
Luis Alonso Ramos1-Jun-05 6:01
Luis Alonso Ramos1-Jun-05 6:01 
Generaldatagrid complex object binding Pin
nonick226-May-05 0:09
nonick226-May-05 0:09 
its alitle hard to explane what i wont.. but i will try any way.
lets say i got 2 classes:

public class person
{
private string firstname;
private string lastname;
private ArrayList exames; // (or HashTable) contaning Exame objects

public string FirstName
{
get{return firstname;}
set{firstname = value;}
}
public string LastName
{
get{return lastname;}
set{lastname = value;}
}
public ArrayList Exames
{
get(return exames;}
set{exames = value;}
}
}

public Class Exame
{
private string examename;
private int grade;

public string ExameName
{
get{return examename;}
set(examename = value;}
}
public int Grade
{
get{return grade;}
set{grade = value;}
}
}

so far so good..
but now i want to bind the person object to a datagrid. and i want the datagrid to show the next information:

person mike = new person();
mike.FirstName = "mike";
mike.LastName = "james;
mike.Exames.Add(new Exame());
((Exame)mike.Exames[0]).ExameName = "english";
((Exame)mike.Exames[0]).Grade = 100;
mike.Exames.Add(new Exame());
((Exame)mike.Exames[1]).ExameName = "math";
((Exame)mike.Exames[1]).Grade = 90;

in the next way in the grid:

FirstName LastName english math (thouse are the column names)
"mike" "james" 100 90 (the data itself)


(P.S ignore the problem when a persion doesnt have a serten exame.. and all other small error's i know how to overcome them. i just need to know how to show it like this)
GeneralDisplay line and column on satusbar Pin
hoangsamac25-May-05 23:45
hoangsamac25-May-05 23:45 
Generalgetting the ListBox list as an array Pin
Green Fuze25-May-05 23:41
Green Fuze25-May-05 23:41 
GeneralRe: getting the ListBox list as an array Pin
pubududilena26-May-05 0:07
pubududilena26-May-05 0:07 
GeneralRe: getting the ListBox list as an array Pin
Green Fuze26-May-05 1:26
Green Fuze26-May-05 1:26 
GeneralNew starter - Common Module Q. Pin
Member 199247025-May-05 23:11
Member 199247025-May-05 23:11 
GeneralRe: New starter - Common Module Q. Pin
Itanium26-May-05 0:10
Itanium26-May-05 0:10 
GeneralRe: New starter - Common Module Q. Pin
Member 199247026-May-05 1:03
Member 199247026-May-05 1:03 
Generalget Time on Server Pin
SEAGames2225-May-05 23:00
SEAGames2225-May-05 23:00 
GeneralRe: get Time on Server Pin
pubududilena25-May-05 23:52
pubududilena25-May-05 23:52 
GeneralRe: get Time on Server Pin
Dave Kreskowiak26-May-05 4:02
mveDave Kreskowiak26-May-05 4:02 
QuestionModule like vb.net ? Pin
LIUCKAS25-May-05 22:42
LIUCKAS25-May-05 22:42 
AnswerRe: Module like vb.net ? Pin
Colin Angus Mackay25-May-05 22:52
Colin Angus Mackay25-May-05 22:52 
GeneralRe: Module like vb.net ? Pin
LIUCKAS25-May-05 23:14
LIUCKAS25-May-05 23:14 
QuestionHow we can stop to creating new Instance on same click of form Pin
Trivikram Dwivedi25-May-05 22:30
Trivikram Dwivedi25-May-05 22:30 
AnswerRe: How we can stop to creating new Instance on same click of form Pin
Itanium25-May-05 23:03
Itanium25-May-05 23:03 
GeneralRe: How we can stop to creating new Instance on same click of form Pin
Trivikram Dwivedi25-May-05 23:54
Trivikram Dwivedi25-May-05 23:54 
QuestionHow we can export a string var to a matlab application using DLL ? Pin
hediii25-May-05 22:06
hediii25-May-05 22:06 

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.