Solved

Problem With Focused Row Change Events

Posted on 2008-10-21
3
606 Views
Last Modified: 2012-05-05
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)
               End If
0
Comment
Question by:DFCRJ
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 22774318
On which line do you get the error?
0
 

Author Comment

by:DFCRJ
ID: 22774407
you know what, whenever i changed the [ ] to ( ) all my problems went aware.
but thank you for taking the time to respond...
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 22774522
My pleasure. Glad that the problem is solved.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question