how can we display records in single datagrid using two
datasets in different place?
Answer Posted / nitin jadav
OracleConnection cn = new OracleConnection("user
id=scott;password=tiger;data source=ganesh1");
OracleDataAdapter da1 = new
OracleDataAdapter("select * from table1", cn);
DataSet ds = new DataSet();
da1.Fill(ds, "temp");
OracleDataAdapter da2 = new
OracleDataAdapter("select * from table2", cn);
DataSet ds1 = new DataSet();
da2.Fill(ds1, "temp");
ds.Merge(ds1);
dataGridView1.DataSource = ds.Tables[0].DefaultView;
label1.Text = ds.Tables[0].Rows.Count.ToString();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between user control an custom control?
3. What goals do you have in your career?
What are the new features implemented in ASP.NET?
What are the asp.net server side objects?
What is the purpose of url encoding?
What is a uri query?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
Is asp.net a programming language?
What is a response cookie?
What are the advantages and disadvantages of Using Cookies?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
Explain how can we inherit a static variable?
What is asp.net response object?
What is rich control in asp.net?
What is the difference between session and application?