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

C#

 
GeneralRe: not the answer Pin
Sheraz Saeedy20-Sep-04 5:53
Sheraz Saeedy20-Sep-04 5:53 
GeneralRe: not the answer Pin
Colin Angus Mackay20-Sep-04 6:04
Colin Angus Mackay20-Sep-04 6:04 
QuestionHi Duell ???? Pin
Anonymous18-Sep-04 3:46
Anonymous18-Sep-04 3:46 
AnswerRe: Hi Duell ???? Pin
Colin Angus Mackay18-Sep-04 7:28
Colin Angus Mackay18-Sep-04 7:28 
GeneralRe: Hi Duell ???? Pin
peterchen19-Sep-04 8:19
peterchen19-Sep-04 8:19 
GeneralRe: Hi Duell ???? Pin
Colin Angus Mackay19-Sep-04 8:20
Colin Angus Mackay19-Sep-04 8:20 
GeneralMerge Pin
sreejith ss nair18-Sep-04 3:12
sreejith ss nair18-Sep-04 3:12 
GeneralRe: Merge Pin
Charlie Williams18-Sep-04 13:47
Charlie Williams18-Sep-04 13:47 
You can use the Merge method of the DataSet class, but you'll need to create a couple of temporary variables along the way.
// Create a temporary DataSet for the merge
DataSet temp = new DataSet("temp");
			
// Copy one of the tables...
DataTable tab1Copy = tab1.Copy();

// and add it to the temp DataSet
temp.Tables.Add(tab1Copy);
  
// Rename it so the tables will merge
temp.Tables["tab1"].TableName = "tab2";
    
// Call the Merge method, passing the other table
temp.Merge(ds.Tables["tab2"]);
  
// Remove the table from both DataSets
temp.Tables.Remove("tab2");
ds.Tables.Remove("tab2");
  
// Add the merged copy back to the original DataSet
ds.Tables.Add(tab1Copy);
  
// Rows are now in "tab2"
ds.Tables["tab1"].Rows.Clear();
  
// Restore reference
tab2 = ds.Tables["tab2"];
  
// Clean up
temp = null;
tab1Copy = null;
I'm sure this isn't the only way of doing this, but it works.

Charlie

if(!curlies){ return; }
GeneralRe: Merge Pin
sreejith ss nair19-Sep-04 3:42
sreejith ss nair19-Sep-04 3:42 
GeneralChange License URL using key info Pin
gupta vaibhav18-Sep-04 1:50
gupta vaibhav18-Sep-04 1:50 
Generallink database Pin
pupuboy18-Sep-04 1:14
pupuboy18-Sep-04 1:14 
GeneralRe: link database Pin
VanesaAFESRG18-Sep-04 5:53
VanesaAFESRG18-Sep-04 5:53 
Generalfill web form using a windows form written in c# Pin
cemlouis17-Sep-04 23:37
cemlouis17-Sep-04 23:37 
GeneralRe: fill web form using a windows form written in c# Pin
sreejith ss nair17-Sep-04 23:41
sreejith ss nair17-Sep-04 23:41 
GeneralRe: fill web form using a windows form written in c# Pin
cemlouis17-Sep-04 23:53
cemlouis17-Sep-04 23:53 
GeneralRe: fill web form using a windows form written in c# Pin
sreejith ss nair17-Sep-04 23:58
sreejith ss nair17-Sep-04 23:58 
GeneralRe: fill web form using a windows form written in c# Pin
cemlouis18-Sep-04 5:29
cemlouis18-Sep-04 5:29 
GeneralCreating Access database in runtime Pin
janigorse17-Sep-04 22:36
janigorse17-Sep-04 22:36 
GeneralRe: Creating Access database in runtime Pin
Vasudevan Deepak Kumar18-Sep-04 1:53
Vasudevan Deepak Kumar18-Sep-04 1:53 
GeneralUsing Web Services from Java Pin
sacoskun17-Sep-04 22:22
sacoskun17-Sep-04 22:22 
QuestionHow to make line limit to input string in Textbox control. Pin
Anonymous17-Sep-04 13:48
Anonymous17-Sep-04 13:48 
AnswerRe: How to make line limit to input string in Textbox control. Pin
Jay Shankar17-Sep-04 17:06
Jay Shankar17-Sep-04 17:06 
GeneralRe: How to make line limit to input string in Textbox control. Pin
sacoskun17-Sep-04 22:25
sacoskun17-Sep-04 22:25 
GeneralRe: How to make line limit to input string in Textbox control. Pin
Jay Shankar18-Sep-04 0:00
Jay Shankar18-Sep-04 0:00 
GeneralRe: How to make line limit to input string in Textbox control. Pin
Anonymous18-Sep-04 8:00
Anonymous18-Sep-04 8:00 

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.