Click here to Skip to main content
15,890,845 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro19-Aug-06 23:42
hkim_zoro19-Aug-06 23:42 
AnswerRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
Ennis Ray Lynch, Jr.18-Aug-06 4:28
Ennis Ray Lynch, Jr.18-Aug-06 4:28 
AnswerRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro19-Aug-06 23:48
hkim_zoro19-Aug-06 23:48 
GeneralRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
Ennis Ray Lynch, Jr.20-Aug-06 6:05
Ennis Ray Lynch, Jr.20-Aug-06 6:05 
GeneralRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro24-Aug-06 1:30
hkim_zoro24-Aug-06 1:30 
QuestionError : Class Not Registered Pin
venkatttttttttttt18-Aug-06 0:43
venkatttttttttttt18-Aug-06 0:43 
AnswerRe: Error : Class Not Registered Pin
Christian Graus18-Aug-06 1:26
protectorChristian Graus18-Aug-06 1:26 
Questionhow to join two datatables in dataset? (no SQL)[modified] Pin
sheetal alaspure17-Aug-06 23:11
sheetal alaspure17-Aug-06 23:11 
hi all
i have two DataTable in DataSet....
also have One common column...
i want to join these two DataTables using that common column
and single dataTable as result.
<>
DataTable examgrade;
DataTable students;
examgrade = new DataTable();
examgrade.Columns.Add("STUDENTID", typeof(int));
examgrade.Columns.Add("GRADE", typeof(string));
addExamgrade(101, "A");
addExamgrade(102, "B-");
addExamgrade(500, "C");
addExamgrade(150, "FAIL");

students = new DataTable();
students.Columns.Add("STUDENTID", typeof(int));
students.Columns.Add("STUDENTNAME", typeof(string));
students.Columns.Add("YEARENROLLED", typeof(int));
addstudent(400, "Fred", 1982);
addstudent(300, "John", 1975);
addstudent(100, "Mark", 2003);
addstudent(500, "Mary", 1960);
addstudent(150, "Jane", 2002);

DataSet ds = new DataSet();
ds.Tables.Add(examgrade);
ds.Tables.Add(students);

DataColumn dcParentStudentID = ds.Tables[0].Columns["STUDENTID"];
DataColumn dcParentGrade = ds.Tables[0].Columns["GRADE"];

DataColumn dcChildStudentID = ds.Tables[1].Columns["STUDENTID"];
DataColumn dcChildStudentName = ds.Tables[1].Columns["STUDENTNAME"];
DataColumn dcChildYearEnrolled = ds.Tables[1].Columns["YEARENROLLED"];

DataRelation dr = new DataRelation("join", new
DataColumn[] { dcParentStudentID }, new
DataColumn[] { dcChildStudentID }, false);
ds.Relations.Add(dr);

private void addExamgrade(int studentID, string grade)
{
DataRow dr = examgrade.NewRow();
dr["STUDENTID"] = studentID;
dr["GRADE"] = grade;
examgrade.Rows.Add(dr);
}

private void addstudent(int studentID, string studentname, int
yearenrolled)
{
DataRow dr = students.NewRow();
dr["STUDENTID"] = studentID;
dr["STUDENTNAME"] = studentname;
dr["YEARENROLLED"] = yearenrolled;
students.Rows.Add(dr);

}

<>

but what after this???


Sheetal.



-- modified at 5:30 Friday 18th August, 2006
AnswerRe: how to join two datatables in dataset? (no SQL)[modified] Pin
sheetal alaspure18-Aug-06 1:43
sheetal alaspure18-Aug-06 1:43 
Questionstore picture Pin
Mohammed Elkholy17-Aug-06 23:05
Mohammed Elkholy17-Aug-06 23:05 
QuestionComboBox is not refreshing it's text on SelectedItem Pin
Ed.Poore17-Aug-06 23:01
Ed.Poore17-Aug-06 23:01 
AnswerRe: ComboBox is not refreshing it's text on SelectedItem Pin
Ed.Poore17-Aug-06 23:33
Ed.Poore17-Aug-06 23:33 
QuestionSetup projects Pin
V.17-Aug-06 22:50
professionalV.17-Aug-06 22:50 
AnswerRe: Setup projects [modified] Pin
Andrei Ungureanu18-Aug-06 0:23
Andrei Ungureanu18-Aug-06 0:23 
GeneralRe: Setup projects Pin
V.18-Aug-06 2:47
professionalV.18-Aug-06 2:47 
QuestionHow To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:07
Coding C#17-Aug-06 22:07 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
Stefan Troschuetz17-Aug-06 22:18
Stefan Troschuetz17-Aug-06 22:18 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:37
Coding C#17-Aug-06 22:37 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Stefan Troschuetz17-Aug-06 23:23
Stefan Troschuetz17-Aug-06 23:23 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 23:56
Coding C#17-Aug-06 23:56 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
Robert Rohde18-Aug-06 0:19
Robert Rohde18-Aug-06 0:19 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#18-Aug-06 0:54
Coding C#18-Aug-06 0:54 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
User 665818-Aug-06 3:56
User 665818-Aug-06 3:56 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
coolestCoder17-Aug-06 22:44
coolestCoder17-Aug-06 22:44 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:47
Coding C#17-Aug-06 22:47 

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.