Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ability to add not enabled in grids
Message
 
À
06/08/2008 18:21:11
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01336675
Message ID:
01337136
Vues:
19
Hi Tim,
The grids do behave independently. They are actually two views of the same table. I suppose I could trigger a new row when they click on the grid but that makes me a little nervous. I'll probably stick with the new button. I suppose I'll have the same problem with Delete. It looks like I'll just have to break down and have two sets of buttons.

>>Hi Tim,
>>Yes, it's an option. I was just expecting it to be like VFP (or SQL Server, for that matter), so that you could just type in the last row and it would automatically create a new row. I ended up adding separate New buttons for each grid. I'm just hoping to avoid having to complete sets of buttons for each grid. Thanks, as always, for your help.
>
>I wonder if there is an event on the grid where you could just call NewRow()? I haven't really tried to do that. Are these tables such that they get added to independantly?
>Tim
>
>>
>>>Hi Linda,
>>>
>>>>I have 2 grids on a tab page in a business form. They are very simple and the users would like to enter data directly. I set the AllowUserToAddRows property to true. ReadOnly is false and Enabled is true. I made sure to create an instance of the related business objects. However, when I run the program, the grids are not enabled. I added code to specifically enable them in the Enter method but it didn't help. Currently, those tables are empty, but that shouldn't make a difference. What else do I need to do? Thanks.
>>>
>>>
>>>Is adding a "New" button an option so you can call NewRow?
>>>
>>>this.MyBizObj.NewRow();
>>>this.grdMyGrid.NavigateData(mmNavigate.Last);
>>>this.grdMyGrid.Focus();
>>>
>>>
>>>Tim
Linda Harmes
HiBit Technologies, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform