Hide New Row in Datagridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bplacker
    New Member
    • Sep 2006
    • 121

    Hide New Row in Datagridview

    Is there a way to hide the last row, the one with a *, which is there to represent a new row? I figured there would be a property to set to false, but I haven't found anything. anyone know?
  • bplacker
    New Member
    • Sep 2006
    • 121

    #2
    Also... I tried to hide it via brute force, by making the last row of the grid not visible, and I got the following error message:

    Uncommitted new row cannot be made invisible.

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      One way may be to set the rowheadervisibl e to false, but I haven't tested this...

      Comment

      • bplacker
        New Member
        • Sep 2006
        • 121

        #4
        That does make the grid more aesthetically pleasing, to me, but it does not remove the last row. The only reason I'm having a problem with this, it because I format some of the columns, such as currency or date/time formats. So on the Currency fields, a value of 0.00 comes up in the new row, which will just confused people.

        Comment

        • kenobewan
          Recognized Expert Specialist
          • Dec 2006
          • 4871

          #5
          Try setting AllowUserToAddR ows to false...

          Comment

          • bplacker
            New Member
            • Sep 2006
            • 121

            #6
            haha yea.. i finally figured that out yesterday. I always do that and somehow I forgot to, and completely forgot about that property. thanks!

            Comment

            Working...