private void rolllBackToolStripMenuItem_Click(object sender, EventArgs e)
{
int[] selectedrows = gridView1.GetSelectedRows();
int grouplevel = gridView1.GetRowLevel((int)selectedrows.GetValue(0));
if (grouplevel >= gridView1.GroupCount)
{
//Console.WriteLine("In row");
if (gridView1.GetFocusedRow() is TransactionEntry)
{
TransactionEntry sh = (TransactionEntry)gridView1.GetFocusedRow();
CastRollBackEvent(sh);
}
}
// cast rollback event to the main form
// and reload the list
}