469,282 Members | 2,372 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

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 12817
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.