Prevent row change Datagridview

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

    #1

    Prevent row change Datagridview

    Hi all,
    How do I prevent row change in a Datagridview? Is there something like a
    BeforeCurrentRo wChanged with an eventarg that could prevent from changing
    current row?

    I'm using datagridview bind with a datatable.

    (I think old ADO had an event that could achieve this!)

    TIA,
    DC

  • Larry Smith

    #2
    Re: Prevent row change Datagridview

    Hi all,
    How do I prevent row change in a Datagridview? Is there something like a
    BeforeCurrentRo wChanged with an eventarg that could prevent from changing
    current row?
    >
    I'm using datagridview bind with a datatable.
    Did you check these out:

    DataGridView.Ce llValidating
    DataGridView.Ro wValidating

    Also see section 4.1 here (written by the "DataGridVi ew" manager at MSFT):




    Comment

    • cjard

      #3
      Re: Prevent row change Datagridview

      On Jun 6, 6:31 pm, "Dinis Correia" <dinis_...@hotm ail.comwrote:
      Hi all,
      How do I prevent row change in a Datagridview?
      Make it read only.
      Is there something like a
      BeforeCurrentRo wChanged with an eventarg that could prevent from changing
      current row?
      Define "Changing the current row" - do you mean edit the row, or alter
      which row is current?


      Comment

      Working...