private int _currRow =0;
private Datatable _theData
private DataRow _dataRow;
private DataRow btn_Next_clicked(object sender, EventArgs e)
{
if(_currRow<_theData.Rows.Count)
{
++_currRow;
}
_dataRow =_theTable.Rows[_currRow];
}
I'll leave the prev button action for you