Subject RE: [IBO] BufferFieldByName & Co.
Author Jason Wharton
Yes, you can interate through the buffer using all the BufferXXXX methods
and properties. This has been touched on heavily in the archives.

As for your other issues of keeping a running total in a grid, I don't know
what to suggest. It sounds to me like a very awkward element in your user
interface design. It might benefit us all if you gave us a view of your
project from a little higher up and perhaps we can give you other ideas to
try. Something bothers me about what I am hearing so far.

Jason Wharton

> -----Original Message-----
> From: []On
> Behalf Of Eyal
> Sent: Wednesday, April 27, 2005 5:02 PM
> To:
> Subject: Re: [IBO] BufferFieldByName & Co.
> Jason Wharton wrote:
> >> 3. If not, is there any other way to make the update pass
> >> through to the dataset (so data aware controls will see it),
> >> but still without triggering a server update?
> >
> > Please clarify what you mean here. I'm not clear on what
> > benefit you are looking for.
> Jason -
> Thanks and you're right that it's better if I explain what I'm trying
> to achieve rather than shoot (questions) in the dark.
> Here is the main problem:
> I need to display a running total in a grid. So far I couldn't find
> any way to read the rows into a dataset, then calculate the running
> total and store it in a field that, so the grid can display the
> running total column like any other column.
> I thought that the buffer methods can serve as a back door to change
> the dataset without triggering the overhead of dataset validations
> and/or server SQL.
> A lesser problem:
> I need to let the user select rows in the grid and display some
> statistics for the selected rows (the stats are "live" as the user
> selects and de-selects rows). So I try something like this:
> - DisableControls.
> - Save the current active row.
> - Iterate the active row over the selected (bookmarked) rows.
> - Restore the active row.
> - EnableControls.
> However the grid that I use (EhLib) detects the change of the active
> row and re-adjusts the grid so the active row is in the center. This
> is very distrubing visually.
> I hoped that the buffer methods can access the selected rows without
> disturbing the "official" active row of the dataset, and so I can
> avoid the visual disturbance.
> Any ideas?
> Thanks,
> Eyal.