I have a DataSet where I need to find out how many rows has been changed using the following code:
DataSet
dataTable1 = dataSet1.Tables[\"FooTable\"].Ge
First make sure that DataTable is not null and than check for the row count
if(dt!=null) { if(dt.Rows.Count>0) { //do your code } }