Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 01, 2009 09:51 AM by NMarcu
May 31, 2009 01:11 PM|LINK
I have a strange situation:
It's work just fine when I do this:
but when I want to to this:
foreach(string s in listOfStrings)
...do somethnig //never enter in if clauses
My need is to see what string from listOfString return some value, and to use it forward, but nothing return 0 counts.
listOfStrings contain sure one value that should return something. I do something wrong here?
Jun 01, 2009 07:15 AM|LINK
i think you have to do something like this..
hope this helps..
Jun 01, 2009 07:28 AM|LINK
Debug your codes, set a break point where you assign the DataSource for your GridView and check whether your Adaptor returns any data.
If it won't go to the line if(gridView.rows.count!=0), then that means there no data returned from your Adaptor query...
Jun 01, 2009 09:51 AM|LINK
I resolve my issue, thank's for help.