Bind Table Values To datalist from sql server.

Posted by Gopal_nivas under ASP.NET on 1/10/2011 | Points: 10 | Views : 6144 | Status : [Member] | Replies : 3
hi..

i have a gridview ..

in tat i want to bind two different id details at a time to gridview..

for example..

productid=100
then i was passing the productid then i got two details for tat productid.

the two details are(id=123 and id= 124)


then

using for loop i was passing the i was passing the id to another table to retrieve the information..
then it retrieves and goto datalist_itemdatabound to bind the id=123 details

then i=1 it retrieves and goto datalist_itemdatabound to bind the id=124 details

finally i want the 2 rows will displayed in datalist but i got the output as one row.(i.e id=124)

how to tackle this..

need ur suggestions with example..

regards
gopal.s




Responses

Posted by: Karthikanbarasan on: 1/10/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi Gopla,

Basically do you want to display as the master and child details in a nested grid view??? is this ur requirement?

Thanks
Karthik
www.f5Debug.net

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopal_nivas on: 1/10/2011 [Member] Starter | Points: 25

Up
0
Down
hi karthik..
s u r right..

but in datalist control..

plz explain with example

regards
gopal.s

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response