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
Please briefly explain the usage of global.asax?
what is command line compiler.what are the steps and how it is related to debugging.
What is synchronous and Asynchronous post back ?
Define the steps to set up validation control.
What is difference between session and cookies in asp net?
What is the use of HttpHandlers? When to use this?
What is OSI layer? Explain different layers.
How information about the user's locale can be accessed?
What is the difference between a cookie and a pixel?
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
How can we create custom controls in asp net?
State differences between MVC and WebAPI
What are sessions used for?
What is the usage of DelegatingHandler?
What are httphandlers and httpmodules and difference between them?