U can also check if a column has values with
if (ds.Tables[0].Rows[0][0] == DBNull.Value)
That checks if the first column of table[0] first row has a value
[quoted text, click to view] "Pathik H Rawal" <PathikHRawal@discussions.microsoft.com> wrote in message
news:64394D61-3D2B-4D9C-BD6C-715203A3C157@microsoft.com...
> Hi Gomathi
>
> "ds" is the DATASET object
>
> U can use
>
> int tot_rec
> tot_rec=0
>
> if(ds.Tables.count>0)
> tot_rec= ds.Table[0].Rows.Count
> end if
>
>
>
>
>
> --
> Pathik H Rawal
> (DotNet Guy)
>
>
> "Gomathi" wrote:
>
>> hi all,
>>
>> In ASP.Net , i'm using a dataset. I want to find whether it has any
>> values
>> or not. How to do that?
>>
>> Thanks in advance.
>>
>> Regards,
>> Gomathi
>>
>>
>>