Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding DataGrid Adding New Rows
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00789791
Message ID:
00789855
Vues:
18
Hi Ahmad,

You need to bind the DataGrid to a DataView and then set the AllowNew property of the DataView to false. This will remove the row with the "*" from the DataGrid.

>Hi all
>
>Is there a way to avoid the DataGrid from adding new line in it.
>
>I managed to do it by doing the following:
>dg1.ReadOnly = True, but the problem in this the user will not be able to change any existing data in it.
>
>Thank for the help.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform