?
Solved

Problem With Focused Row Change Events

Posted on 2008-10-21
3
Medium Priority
?
629 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

719 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