Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to edit a grid but prevent adding a record
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00993148
Message ID:
00993170
Vues:
13
You are surely using the DataGrid that comes with VS.Net? In this case, you will to modify attributes of the datatable to which you are binding.

See http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q653q



>Hi Eric.
>
>No. I cant see a property called AllowAddNew in the properties sheet of the grid.
>Would it be hidden anywhere, or the fact that I have the Grid Read Only set to true, would this affect it ?
>
>regards,
>
>Gerard
>
>
>
>>Which grid ? Don't you have the AllowAddNew property?
>>
>>
>>>Hi.
>>>
>>>I want to be able to edit a grid (Readonly property = false) but
>>> to prevent the system 'Adding' a record when I hit enter
>>> after the last exisitng field.
>>>
>>>(I have a button on the Form which 'Adds' a record , and poplates the record
>>> with some necessary fields)
>>>
>>>Is there a property on the grid to do this ?
>>>
>>>Regards,
>>>Gerard
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform