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

Please briefly explain the usage of global.asax?

909


what is command line compiler.what are the steps and how it is related to debugging.

1825


What is synchronous and Asynchronous post back ?

1062


Define the steps to set up validation control.

991


What is difference between session and cookies in asp net?

991


What is the use of HttpHandlers? When to use this?

1060


What is OSI layer? Explain different layers.

1003


How information about the user's locale can be accessed?

991


What is the difference between a cookie and a pixel?

884


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

831


How can we create custom controls in asp net?

973


State differences between MVC and WebAPI

1069


What are sessions used for?

947


What is the usage of DelegatingHandler?

1011


What are httphandlers and httpmodules and difference between them?

952