Problem With Focused Row Change Events
Posted on 2008-10-21
I'm learning, so take it easy on me.
I have a grid that allows the user to input their monthly mileage. Starting and Ending odometer amounts and I have a third column that I need to show the difference between the two. 10-20 = 10
I'm trying to get my row change event to calculate the difference but I keep getting an overload solution failure, i have tried many different ways with no luck. Please advise on how to fix.
Dim StartOD As Double
Dim EndOD As Double
Dim view As GridView
view = CType(sender, GridView)
If (e.PrevFocusedRowHandle >= 0) Then
StartOD = view.GetRowCellValue(e.PrevFocusedRowHandle,view.Columns["OD Start"])
EndOD = view.GetRowCellValue(e.PrevFocusedRowHandle,view.Columns["OD End"])
view.SetRowCellValue(e.PrevFocusedRowHandle, view.Columns["Miles"], StartOD - EndOD)