How to manually assign an item in a SqlDataReader

J

joelranck

I'm having a problem figuring out how to evaluate a value read from a
SqlConnection and then assign a column based on that evaluation into my
DataGrid. Basically when the DB is queried I want to check if a value
is 1 or 0 in a specific field.. If so then assign corresponding Yes or
No into the DataGrid. The question is really two parts how can I
evaluate a DataReader value and how can I manually bind a new value
into a DataGrid?

Thanks a ton.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top