Solved

Problem With Focused Row Change Events

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Paging GridView 7 49
Code enhancement 5 22
Help with WinAPI Signatures in VB.NET for SetWindowSubclass 2 34
Exit the loop 4 34
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

20 Experts available now in Live!

Get 1:1 Help Now