Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Help Members By Posting Answers For Below Questions

What is IPostBack? How to use it?

1112


How does windows service lifecycle differ from a .standard. Exe?

1045


What is event bubbling?

1023


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?

972


Why should i prefer JSP over asp.net or any other web development language..??

2004


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

1069


What is difference between asp state management and asp.net state management?

1095


Define static member?

1001


what is silver light when will we use silver light,

1915


What is viewstate? What does the “enableviewstate” property do?

929


What are the differences between the response.write() and response.output.write()?

1033


Why is the standalone environment only useful during the development process?

1847


What is the difference between web.config and machine.config in ASP.NET?

1160


Is it possible to migrate visual interdev design-time controls to asp.net?

1062


How to create discussion forum in asp.net mvc? : Asp.Net MVC

1053