Hi, I have some dataset with values and now I need to put that values into textbox but there is some decimal and double type values so I need to cast them toString() and it happens that sometime dataset values are empty so before casting toString() I need to check Is there any value ??? This is sample line:
I need something like this :
if(ds.Tables[0].Rows[0].Field<decimal>("IndexPrethodni") !=null or something)
{
Convert.ToString(ds.Tables[0].Rows[0].Field<decimal>("IndexPrethodni"));
}
I known decimal is not nullable type , but is there any easy solution to check this srt of values ?????