Hi again!
I have a database and some tables filled with data.
var club = Baza.Clubs; //Baza is dataset, and Clubs is table
var schedule = Baza.Schedule; // same as above
for (int i = 1; i <= 90; i++)
{
if(schedule[i].day == 2) // BOOM! Breaks at first pass..
{
//Do something..
}
}
When I run my app it throws me this error: There is no row at position 0
and throws me to dataSet.Designer.cs to this part of code:
public ScheduleRow this[int index] {
get {
return ((ScheduleRow)(this.Rows[index]));
}
}
Any ideas why this happens?