Solved

Problem With Focused Row Change Events

Posted on 2008-10-21
3
597 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now