Hi
I am working on migrating VB application to C# windows application. VB application is using third party controls such as Farpointspread (Gridview in terms of .NET) that provides huge number of functionalities.
Objective 1 - - If I am in 2nd row of datagridview and I click on a cell in 4th row, while leaving a cell in 2nd row, I need a single event for .NET datagridview, that will give me row index of previous row as well as row index of new row I am entering. (New RowIndex and Old RowIndex) and my scenario demands this information in SAME EVENT of a grid. How to make this possible ?
Al above scenarios I mentioned are already handled in VB third party control's spread called "Far Point spread". Below is the event code snippet for readymade event -
Private Sub farpointSpreadGrid_LeaveCell(ByVal Col As Long, ByVal Row As Long, ByVal NewCol As Long, ByVal NewRow As Long, Cancel As Boolean)
private void fpsStep4Results_CellLeave(object sender, DataGridViewCellEventArgs e) if (Newrow != oldRow) TEST_LeaveCell(oldRow, Newrow);
public static int oldRow = 0; private void fpResults_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) { oldRow = fpResults.CurrentCell.RowIndex; }
public static int Newrow = 0; private void fpResults_SelectionChanged(object sender, EventArgs e) { Newrow = fpsStep4Results.CurrentCell.RowIndex; }
I dont have any control over these events, because when grid is refreshed, depending on controls present in each rowSome rows have only one dropdown, some rows have two dropdowns), these events get fired and mess up my logic to set NewRowIndex andOldRowIndex.
Is there any solution on this problem ?