APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

DataGrid
Version 2.5



What's New
Overview
Features
Reference Book
Licensing
Support



Populating with Data
Columns
Rows
Bottom Bar
Layout and Behavior
Exporting
Skins




Edit Form is used to create a new entry or edit a current one. Edit Form is an .ascx file (User Control) to be configured by the developer independently. The DataGrid automatically loads Edit Form and displays it at the moment when user presses button "insert" or "update".

The EditForm.Path property is used to inform the DataGrid on which .ascx file is applied as an editing form.

In order to create a new entry the user presses the button, which performs a standard client-side procedure dg.OpenFormForInsert(). Procedure dg.OpenFormForUpdate('$RowID$') is used to open the form in "update" mode. Bottom Bar already includes the standard button for opening Edit Form in "insert" mode.

The Edit Form itself may contain buttons, which use standard client-side procedures dg.InsertRow() (for "insert"), dg.UpdateRow() (for "update") and dg.CloseEditForm() (for closing the form).

The EditForm.ShadowDepth, EditForm.ShadowColor and EditForm.ShadowOpacity properties are used to set the shadow. To set the position the EditForm.PositionInsert and EditForm.PositionUpdate properties are used.

This example demonstrates how to use the Edit Form.





  © 2003-2008 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center