Solved

Problem With Focused Row Change Events

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

763 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