it is always good to validate wether the dataset has data or is empty you can use something like this to cover all validations
if(ds != null && ds.Tables.Count > 0 && ds.Tables.Rows.Count > 0)
// it is empty
Posted by humrahimcs on December 7, 2012 in ASP Dot Net C#
Tags: c# - Exception throws There is no row at position 0, shows the error as There is no row at position 0., there is no row at position 0 dataset
Create a free website or blog at WordPress.com.
Entries (RSS) and Comments (RSS)