Sep 16, 2005 #1 magmo Programmer Joined May 26, 2004 Messages 291 Location SE Hi I wonder if there is a way to disable the last (new) line in a datagrid. Regards
Sep 16, 2005 #2 RiverGuy Programmer Joined Jul 18, 2002 Messages 5,011 Location US Yes. Create a read-only DataView and use that for the datasource. Upvote 0 Downvote
Sep 16, 2005 #3 RiverGuy Programmer Joined Jul 18, 2002 Messages 5,011 Location US Actually .AllowEdit to false I mean Upvote 0 Downvote
Sep 16, 2005 Thread starter #4 magmo Programmer Joined May 26, 2004 Messages 291 Location SE Is there a way to do this when I use a dataset? Upvote 0 Downvote
Sep 16, 2005 Thread starter #5 magmo Programmer Joined May 26, 2004 Messages 291 Location SE Solved it by setting datagrid to readonly Upvote 0 Downvote
Sep 16, 2005 #6 RiverGuy Programmer Joined Jul 18, 2002 Messages 5,011 Location US Readonly does not allow you to make any updates. The only way to accomplish updates without new rows is to use a DataView. Upvote 0 Downvote
Readonly does not allow you to make any updates. The only way to accomplish updates without new rows is to use a DataView.
Sep 16, 2005 Thread starter #7 magmo Programmer Joined May 26, 2004 Messages 291 Location SE Well thats fine, beacuse I only use it to write out database rows together with a checkbox so that the user can select one or more rows. /Magnus Upvote 0 Downvote
Well thats fine, beacuse I only use it to write out database rows together with a checkbox so that the user can select one or more rows. /Magnus