Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. DataGridView New Row

DataGridView New Row

Scheduled Pinned Locked Moved C#
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saqib Mehmood
    wrote on last edited by
    #1

    In DataGridView control New row is always present. Is there any way If I dont want to display this new row because the data I am presenting in it to user is readonly.

    Saqib

    N S 2 Replies Last reply
    0
    • S Saqib Mehmood

      In DataGridView control New row is always present. Is there any way If I dont want to display this new row because the data I am presenting in it to user is readonly.

      Saqib

      N Offline
      N Offline
      Navi15
      wrote on last edited by
      #2

      Set the Read only Property of Datagrid to true Navi

      S 1 Reply Last reply
      0
      • N Navi15

        Set the Read only Property of Datagrid to true Navi

        S Offline
        S Offline
        Saqib Mehmood
        wrote on last edited by
        #3

        I have already done this. My problem is not making ReadOnly but it is rather I dont want to show NewRow that appear with * sign.

        Saqib

        1 Reply Last reply
        0
        • S Saqib Mehmood

          In DataGridView control New row is always present. Is there any way If I dont want to display this new row because the data I am presenting in it to user is readonly.

          Saqib

          S Offline
          S Offline
          Saqib Mehmood
          wrote on last edited by
          #4

          just set AllowUserToAddRows property to false.

          Saqib

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups