Home All Groups Group Topic Archive Search About

DataGridView question

Author
3 Jul 2006 11:25 AM
Philipp
Hi NG,

When the user is allowed to add new rows to a datagridview, an new row is
automatically added when the user edits a field.
Now I want a new row added when a cell in the last row gets focus.

Can anyone point me in the right direction?

Thanks

Philipp

Author
3 Jul 2006 3:52 PM
Jared Parsons [MSFT]
Hello Philipp,

> Hi NG,
>
> When the user is allowed to add new rows to a datagridview, an new row
> is
> automatically added when the user edits a field.
> Now I want a new row added when a cell in the last row gets focus.
> Can anyone point me in the right direction?

You can listen to the CellEnter event.  When recieving the event you can
check to see if it's the last cell on the last row and if so, manually add
a row to the DataGridView

--
Jared Parsons [MSFT]
jared***@online.microsoft.com
All opinions are my own. All content is provided "AS IS" with no warranties,
and confers no rights.