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 IPostBack? How to use it?
How does windows service lifecycle differ from a .standard. Exe?
What is event bubbling?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
Why should i prefer JSP over asp.net or any other web development language..??
For which does this Codebehind="MyCode.aspx.cs" is relevent to ?
What is difference between asp state management and asp.net state management?
Define static member?
what is silver light when will we use silver light,
What is viewstate? What does the “enableviewstate” property do?
What are the differences between the response.write() and response.output.write()?
Why is the standalone environment only useful during the development process?
What is the difference between web.config and machine.config in ASP.NET?
Is it possible to migrate visual interdev design-time controls to asp.net?
How to create discussion forum in asp.net mvc? : Asp.Net MVC