Click here to Skip to main content
15,917,062 members
Home / Discussions / C#
   

C#

 
GeneralRe: A wired problem in static classes Pin
Christian Graus23-Nov-06 12:38
protectorChristian Graus23-Nov-06 12:38 
AnswerRe: A wired problem in static classes Pin
Rob Graham23-Nov-06 13:53
Rob Graham23-Nov-06 13:53 
GeneralRe: A wired problem in static classes Pin
Amar Chaudhary23-Nov-06 14:08
Amar Chaudhary23-Nov-06 14:08 
GeneralRe: A wired problem in static classes Pin
S. Senthil Kumar24-Nov-06 8:20
S. Senthil Kumar24-Nov-06 8:20 
GeneralRe: A wired problem in static classes Pin
Rob Graham24-Nov-06 8:35
Rob Graham24-Nov-06 8:35 
GeneralRe: A wired problem in static classes Pin
Amar Chaudhary24-Nov-06 13:16
Amar Chaudhary24-Nov-06 13:16 
GeneralRe: A wired problem in static classes Pin
Scott Dorman27-Nov-06 5:11
professionalScott Dorman27-Nov-06 5:11 
QuestionHow to copy a datarow to another datatable ? Pin
hdv21223-Nov-06 10:11
hdv21223-Nov-06 10:11 
hi i have a table in my dataset and i create another datatable as "dt",i want to copy a few rows from myDataset.Tables[0] to dt but the following error shown me :

This row already belongs to another table.

how to solve my problem ?
My code is :
foreach (DataGridViewRow _gridViewRow in dataGridView1.Rows)
{
if (_gridViewRow.Cells[0].Value != null)
{
if (_gridViewRow.Cells[0].Value.ToString() == "True")
{
//_gridViewRow.Visible = true;
//c++;
DataRow row = ds_zamin1.Khaneh_1.Rows[_gridViewRow.Index];
ds_zamin1.Khaneh_1.Rows.Remove(row);
dt.Rows.Add(row); //error in this line }
}
}
this.dataGridView2.DataSource = dt;
AnswerRe: How to copy a datarow to another datatable ? Pin
Nader Elshehabi23-Nov-06 10:16
Nader Elshehabi23-Nov-06 10:16 
GeneralRe: How to copy a datarow to another datatable ? Pin
hdv21223-Nov-06 11:08
hdv21223-Nov-06 11:08 
GeneralRe: How to copy a datarow to another datatable ? Pin
Nader Elshehabi23-Nov-06 11:51
Nader Elshehabi23-Nov-06 11:51 
AnswerRe: How to copy a datarow to another datatable ? Pin
zhouyu53724-Nov-06 16:52
zhouyu53724-Nov-06 16:52 
QuestionDataGridView VS2005 Pin
vykom23-Nov-06 9:54
vykom23-Nov-06 9:54 
AnswerRe: DataGridView VS2005 Pin
Nader Elshehabi23-Nov-06 10:02
Nader Elshehabi23-Nov-06 10:02 
GeneralRe: DataGridView VS2005 Pin
vykom23-Nov-06 13:17
vykom23-Nov-06 13:17 
GeneralRe: DataGridView VS2005 Pin
Nader Elshehabi23-Nov-06 20:22
Nader Elshehabi23-Nov-06 20:22 
GeneralRe: DataGridView VS2005 Pin
vykom23-Nov-06 21:59
vykom23-Nov-06 21:59 
Questionquestion in c# [modified] Pin
amirafouad2123-Nov-06 9:40
amirafouad2123-Nov-06 9:40 
AnswerRe: question in c# Pin
Guffa23-Nov-06 9:54
Guffa23-Nov-06 9:54 
AnswerRe: question in c# Pin
Nader Elshehabi23-Nov-06 9:59
Nader Elshehabi23-Nov-06 9:59 
AnswerRe: question in c# Pin
shabonaa23-Nov-06 10:48
shabonaa23-Nov-06 10:48 
QuestionGetting Disk Drives Pin
Vertyg023-Nov-06 9:23
Vertyg023-Nov-06 9:23 
AnswerRe: Getting Disk Drives Pin
Nader Elshehabi23-Nov-06 9:34
Nader Elshehabi23-Nov-06 9:34 
GeneralRe: Getting Disk Drives Pin
Vertyg023-Nov-06 12:55
Vertyg023-Nov-06 12:55 
GeneralRe: Getting Disk Drives Pin
Weckmann23-Nov-06 23:57
Weckmann23-Nov-06 23:57 

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.