You can bind as follows

 

Dg1.DataSource = dsData.Tables[0]

Dg2.DataSource = dsData.Tables[1]

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of George S
Sent: Wednesday, June 16, 2010 8:13 PM
Subject: [DotNetDevelopment] SP with two tables

 

Hi,

This is one of the interview question I was asked recently. 

 

There is a stored procedure which has a select statement to retrieve two
tables. 

 

This sp is assigned to a datagrid. How can I assign the tables separately to
two grids. 

 

Regards,

-George

Reply via email to