On Mon, 21 Mar 2005 06:55:07 -0800, "misu" <(E-Mail Removed)>
wrote:
>Hi everyone
>I have the data grid bound to a data source. In my application I want to
>allow users
>to edit the rows in the grid, but I don't want them to add new rows.
>When the user clicks the save button I only select the modified rows and not
>the new ones and everything goes fine.
>But I don't like that the data grid still permits the user to add new rows,
>and I think that this is not looking nice or professional.
>How can I make the grid to block the adding of rows but still to let the
>user edit the rows?
>10x
From The DataGrid documentation in VS .NET Help:
"You can create a grid that allows users to edit data but prevents them from
adding new rows by using a DataView as the data source and setting the AddNew
property to false."
Otis Mukinfus
http://www.otismukinfus.com