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
Differentiate between a hyperlink control and a linkbutton control.
Explain the asp.net session state modes.
what is meant by sitemapnode ?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
What is server redirect?
How does session state work in asp.net?
How can you handle exceptions in asp.net?
How to deploy/publish webservices?How many ways?Plz explain me
What is the postback property in asp.net?
Mention the namespace that is used to include .net data provider for sql server in .net code?
What is syntax code to send email from an asp.net application?
Why and where this web.config file is used?
What is the function of new view engine in asp.net? : asp.net mvc
Explain diff. Between friend and protected friend?
What are sessions and cookies?