private void fpSpread1LeaveCell(object sender, FarPoint.Win.Spread.LeaveCellEventArgs e)
{
int i;
i = fpSpread1.ActiveSheet.SetModelColumnForViewColumn(e.Column, 1);
MessageBox.Show("The previous model column index mapped to the specified view column is row " + i.ToString());
}
Private Sub FpSpread1LeaveCell(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.LeaveCellEventArgs) Handles FpSpread1.LeaveCell
Dim i As Integer
i = FpSpread1.ActiveSheet.SetModelColumnForViewColumn(e.Column, 1)
MessageBox.Show("The previous model column index mapped to the specified view column is row " & i.ToString())
End Sub