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

C#

 
GeneralRe: Retrieve Filenames Distinctively Pin
Giorgi Dalakishvili16-Jan-09 9:56
mentorGiorgi Dalakishvili16-Jan-09 9:56 
GeneralRe: Retrieve Filenames Distinctively Pin
Vimalsoft(Pty) Ltd16-Jan-09 3:28
professionalVimalsoft(Pty) Ltd16-Jan-09 3:28 
GeneralRe: Retrieve Filenames Distinctively Pin
Eddy Vluggen16-Jan-09 4:01
professionalEddy Vluggen16-Jan-09 4:01 
AnswerRe: Retrieve Filenames Distinctively Pin
Henry Minute16-Jan-09 4:52
Henry Minute16-Jan-09 4:52 
GeneralRe: Retrieve Filenames Distinctively Pin
Vimalsoft(Pty) Ltd18-Jan-09 20:02
professionalVimalsoft(Pty) Ltd18-Jan-09 20:02 
QuestionCrystal Report Paper Size Pin
Wlink16-Jan-09 0:47
Wlink16-Jan-09 0:47 
AnswerRe: Crystal Report Paper Size Pin
ambarishtv27-Apr-11 5:31
ambarishtv27-Apr-11 5:31 
QuestionHello Peoples, Pin
Hema Bairavan16-Jan-09 0:45
Hema Bairavan16-Jan-09 0:45 
RantRe: Hello Peoples, Pin
Guffa16-Jan-09 1:16
Guffa16-Jan-09 1:16 
AnswerRe: Hello Peoples, Pin
Tom Deketelaere16-Jan-09 1:44
professionalTom Deketelaere16-Jan-09 1:44 
GeneralRe: Hello Peoples, Pin
Hema Bairavan16-Jan-09 4:30
Hema Bairavan16-Jan-09 4:30 
QuestionOk Mr Tom Pin
Hema Bairavan16-Jan-09 4:46
Hema Bairavan16-Jan-09 4:46 
AnswerRe: Ok Mr Tom Pin
Tom Deketelaere16-Jan-09 4:52
professionalTom Deketelaere16-Jan-09 4:52 
QuestionCaching Method Pin
satsumatable16-Jan-09 0:27
satsumatable16-Jan-09 0:27 
AnswerRe: Caching Method Pin
Steve Hansen16-Jan-09 2:58
Steve Hansen16-Jan-09 2:58 
QuestionBinding two datasets to gridview in windows application. Pin
shaik abdul gani15-Jan-09 23:49
shaik abdul gani15-Jan-09 23:49 
Dear Team,

I created two different threads and by using dataadapter i filled two different datasets. which have no relations among them and i want to bind/merge the two dataset into single dataset and bind them to the gridview.


private void button1_Click(object sender, EventArgs e)
{
Thread thread1 = new Thread(new ThreadStart(Procedure1));
Thread thread2 = new Thread(new ThreadStart(Procedure2));
//Thread thread3 = new Thread(new ThreadStart(Procedure3));
thread1.Start();
thread2.Start();
loaddata();
}


private void Procedure1()
{
OracleConnection con = new OracleConnection(ConnectString);

OracleCommand command = new OracleCommand(" select * from CIHOLDDETAILS", con);
OracleDataAdapter da = new OracleDataAdapter(command);
//da.TableMappings.Add("Table1","Holddetails");
da.Fill(ds,"HOLDDETAILS");
//da.Fill(dt);
//dt = ds.Tables[0].Copy();
}

private void Procedure2()
{
OracleConnection cn = new OracleConnection(ConnectString);
OracleCommand cmd = new OracleCommand(" select * from CIINSPECTIONREPORTS", cn);
OracleDataAdapter orda = new OracleDataAdapter(cmd);
orda.Fill(ds2, "CIINSPECTIONREPORTS");
//dt2 = ds2.Tables[0].Copy();
}

private void loaddata()
{
ds3.Merge(ds);
ds3.Merge(ds2);

dataGridView1.DataSource = ds3;

}
here i tried to merge the dataset but it is giving error as :Collection was modified; enumeration operation might not execute.

i think becouse of different datatypes and different table it is giving. but how to handile it
or there any alternative way of doing this

please help me out in this problem .

Thanx in Advance
QuestionPrint an arrays by coulms Pin
newbie_15-Jan-09 23:19
newbie_15-Jan-09 23:19 
QuestionRe: Print an arrays by coulms Pin
CPallini15-Jan-09 23:36
mveCPallini15-Jan-09 23:36 
AnswerRe: Print an arrays by coulms Pin
SeMartens15-Jan-09 23:41
SeMartens15-Jan-09 23:41 
GeneralRe: Print an arrays by coulms Pin
J a a n s15-Jan-09 23:52
professionalJ a a n s15-Jan-09 23:52 
GeneralRe: Print an arrays by coulms Pin
SeMartens15-Jan-09 23:58
SeMartens15-Jan-09 23:58 
GeneralRe: Print an arrays by coulms [modified] Pin
newbie_15-Jan-09 23:58
newbie_15-Jan-09 23:58 
Questionhow can i suppress Microsoft .NET security warning. [modified] Pin
Dattatraya K15-Jan-09 23:09
Dattatraya K15-Jan-09 23:09 
AnswerRe: how can i suppress Microsoft .NET security warning. Pin
SeMartens15-Jan-09 23:17
SeMartens15-Jan-09 23:17 
GeneralRe: how can i suppress Microsoft .NET security warning. Pin
Dattatraya K15-Jan-09 23:20
Dattatraya K15-Jan-09 23:20 

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.