Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
Hello,
my datatable returns a row with several fields.
I can refer to all the field values except one of them which returns blank.
In immediate window it returns : dt.Rows[0]["Quarter"]
{}
Even if I refer to it by index number, it returns the same thing i.e. empty value

I can see in the stored proc it does return a value for field "Quarter"

Do you know what I am doing wrong?
Posted
Comments
OriginalGriff 17-Jan-13 4:40am    
Without your code? No idea!
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Try posting the relevant code fragments to load the DT and access the fields.
If you are using an SP, then that would probably help as well.
Use the "Improve question" widget to edit your question and provide better information.
k.Prathap 17-Jan-13 4:42am    
post your code

C#
In immediate window it returns : dt.Rows[0]["Quarter"]
{}

it means dt.Rows[0]["Quarter"] contains null value.
see in table and check the value.
 
Share this answer
 
Solved by changing the datatype.
Not sure why.
Thank anyway.
 
Share this answer
 

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