Hi:

I'm using FindRows() to locate rows in a DataGridView. When adding new rows
consecutively, the last row added is not found when calling FindRows().
It's not until you shift focus away from newly added row by selecting other
rows will it find it. It's like it's not being committed. What is
workaround for this?

THanks,
Charlie

Re: FindRows() doesn't find last entered row in a DataGridView... by RobinS

RobinS
Tue Feb 27 10:44:09 CST 2007

Call EndEdit() before you do the Find.

Robin S.
-------------------------------
"Charlie@CBFC" <charlie@cbfconsulting.com> wrote in message
news:%23sM$BanWHHA.4796@TK2MSFTNGP05.phx.gbl...
> Hi:
>
> I'm using FindRows() to locate rows in a DataGridView. When adding new
> rows consecutively, the last row added is not found when calling
> FindRows(). It's not until you shift focus away from newly added row by
> selecting other rows will it find it. It's like it's not being
> committed. What is workaround for this?
>
> THanks,
> Charlie
>