Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi my friends
C#
dropdownlist.SelectedValue = ds.Tables[0].Rows[0].ItemArray[1].ToString();

what is the meaning of ds.tables[0],row[0]
and i have i error is " There is no row at position 0."
what this error meaning
Posted
Updated 14-Mar-12 8:35am
v2

"There is no row as position 0".

What do YOU think that means? I think it's pretty clear. Your table, referenced by index 0, is empty.
 
Share this answer
 
 
Share this answer
 
Comments
RAHOOL SONI 14-Mar-12 14:59pm    
thanks but here no right way... for my bug..
u have any other way... please...
[no name] 14-Mar-12 18:49pm    
There is no other way other than fix your query.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900