472,146 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Hide New Row in Datagridview

bplacker
121 100+
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?
Jan 22 '07 #1
5 13055
bplacker
121 100+
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.
Jan 22 '07 #2
kenobewan
4,871 Expert 4TB
One way may be to set the rowheadervisible to false, but I haven't tested this...
Jan 23 '07 #3
bplacker
121 100+
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.
Jan 23 '07 #4
kenobewan
4,871 Expert 4TB
Try setting AllowUserToAddRows to false...
Jan 23 '07 #5
bplacker
121 100+
haha yea.. i finally figured that out yesterday. I always do that and somehow I forgot to, and completely forgot about that property. thanks!
Jan 24 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Greg Burns | last post: by
4 posts views Thread by Stropher | last post: by
4 posts views Thread by osmarjunior | last post: by
2 posts views Thread by autenzio | last post: by
reply views Thread by Gian Paolo | last post: by
3 posts views Thread by =?Utf-8?B?U3RldmVU?= | last post: by
1 post views Thread by TonyJ | last post: by
2 posts views Thread by Steve Barnett | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.