Locating new row - CSharp

This is a discussion on Locating new row - CSharp ; If I have a data source bound to my DataGridView, and then I perform an action that adds a new row to that datasource. How can I tell which row in the DataGridView to focus? I can't just select the ...

+ Reply to Thread
Results 1 to 3 of 3

Locating new row

  1. Default Locating new row

    If I have a data source bound to my DataGridView, and then I perform an
    action that adds a new row to that datasource. How can I tell which row in
    the DataGridView to focus? I can't just select the last row because the
    user may have chosen to sort by one of the numerous columns.


    Thanks

    Pete



  2. Default Re: Locating new row

    Revised question :-)

    I found the row I have inserted, but when I do this

    PropertyManager pm = (PropertyManager) BindingContext[MyDataGridView];
    pm.Position = thatRow.Index;

    The index is not updated. How can I set the active row index?



    Thanks



  3. Default Re: Locating new row

    Try to set DataGridView.CurrentCell.




    "Peter Morris" <support@NOdroopySPAMeyes.com> wrote in message
    news:ut$HUTtAIHA.2268@TK2MSFTNGP02.phx.gbl...
    > Revised question :-)
    >
    > I found the row I have inserted, but when I do this
    >
    > PropertyManager pm = (PropertyManager) BindingContext[MyDataGridView];
    > pm.Position = thatRow.Index;
    >
    > The index is not updated. How can I set the active row index?
    >
    >
    >
    > Thanks
    >
    >




+ Reply to Thread

Similar Threads

  1. need help locating a font
    By Application Development in forum Adobe Typography
    Replies: 5
    Last Post: 05-09-2007, 04:29 PM
  2. locating vertices
    By Application Development in forum Graphics
    Replies: 0
    Last Post: 05-12-2005, 06:47 AM
  3. Locating Jar Contents
    By Application Development in forum Java
    Replies: 3
    Last Post: 08-25-2004, 10:54 AM
  4. HTML Tag Locating Question
    By Application Development in forum basic.visual
    Replies: 4
    Last Post: 02-09-2004, 12:40 PM
  5. VB .Net: Locating Controls by name
    By Application Development in forum basic.visual
    Replies: 0
    Last Post: 10-27-2003, 02:41 PM