PC Review


Reply
Thread Tools Rate Thread

Datagrid: al little problem

 
 
=?Utf-8?B?bWlzdQ==?=
Guest
Posts: n/a
 
      21st Mar 2005
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
 
Reply With Quote
 
 
 
 
Otis Mukinfus
Guest
Posts: n/a
 
      22nd Mar 2005
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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid Problem Abhi Microsoft C# .NET 1 29th Jan 2006 09:12 PM
problem in nesting datagrid in to a nested datagrid sajvargs Microsoft ASP .NET 0 20th Feb 2005 12:17 AM
DataGrid TableStyle Problem and ScrollBar Problem =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 0 24th Sep 2004 04:59 AM
Datagrid Map Problem MadCrazyNewbie Microsoft VB .NET 4 26th Mar 2004 12:14 PM
Problem getting value from Datagrid =?Utf-8?B?Q0RXYWRkZWxs?= Microsoft C# .NET 2 20th Feb 2004 07:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:13 PM.