DataGridView question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philipp

    #1

    DataGridView question

    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


  • Jared Parsons [MSFT]

    #2
    Re: DataGridView question

    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]
    jaredpar@online .microsoft.com
    All opinions are my own. All content is provided "AS IS" with no warranties,
    and confers no rights.


    Comment

    Working...