DataGridView .NET 2.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?=

    DataGridView .NET 2.0

    Hi,

    is it possible in the new DataGridView to add only a fix count of rows
    without that a extra row (for input of a new record) is shown automatically?

    Christian
  • Marc Gravell

    #2
    Re: DataGridView .NET 2.0

    Try setting AllowUserToAddR ows to false.

    Marc


    Comment

    • =?Utf-8?B?TWFuaXNoIEJhZm5h?=

      #3
      RE: DataGridView .NET 2.0

      Hi,
      When both DataGridView's AllowUserToAddR ows and underlying
      IBundingList.Al lowNew(That is for example dataset1.Tables[0].Defaultview)
      property are true, a user can add a new row which is marked with an
      asterisk(*).Ple ase do set them false and you will have fixed no. of rows
      --
      Hope this helps.
      Thanks and Regards.
      Manish Bafna.
      MCP and MCTS.



      "Christian Havel" wrote:
      Hi,
      >
      is it possible in the new DataGridView to add only a fix count of rows
      without that a extra row (for input of a new record) is shown automatically?
      >
      Christian

      Comment

      • =?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?=

        #4
        Thank you both :-)



        "Manish Bafna" wrote:
        Hi,
        When both DataGridView's AllowUserToAddR ows and underlying
        IBundingList.Al lowNew(That is for example dataset1.Tables[0].Defaultview)
        property are true, a user can add a new row which is marked with an
        asterisk(*).Ple ase do set them false and you will have fixed no. of rows
        --
        Hope this helps.
        Thanks and Regards.
        Manish Bafna.
        MCP and MCTS.
        >
        >
        >
        "Christian Havel" wrote:
        >
        Hi,

        is it possible in the new DataGridView to add only a fix count of rows
        without that a extra row (for input of a new record) is shown automatically?

        Christian

        Comment

        Working...