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
Where web.config file is used?
Why will you usually create an aspnet user account in the database for an asp.net web application?
Can you explain the importance of finalize method in .net?
What is the difference between localization and globalization?
Explain one critical mapping?
What is bound controls
Is there any limit for query string? Means what is the maximum size?
what are configuration files?
What is AutoPostback?
What is webresource axd?
What is an asp.net web form?
Can you set which type of comparison you want to perform by the comparevalidator control?
What are different methods of session maintenance in asp.net?
What is runat?
What is the difference between a default skin and a named skin?