Intersoft WebGrid Documentation
Walkthrough: Using NumericUpDown Custom Editor in WebGrid
See Also Send comments on this topic.

Glossary Item Box

This walkthrough shows you how to use NumericUpDown in WebGrid.

During this walkthrough, you will learn how to do the following:

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • Visual Studio 2005 Application.

 Step-By-Step Instructions

To create new web application and specify NumericUpDown control in WebGrid

  1. Bind WebGrid to AccessDataSource. 
  2. Please use Products table instead of Customers table.
  3. Right click on WebGrid and click on Retrieve Structure to retrieve all columns based on assigned DataSource.
  4. Go to the WebGrid designer.
  5. Set WebGrid's properties AllowEdit to true
  6. Go to Advanced, click See All Properties.
  7. Specify the CustomEditorName property to NumericUpDown.
  8. Set the EditType property to Custom.
  9. Set the CustomEditorProperties
  10. There are two properties available in NumericUpDown CustomEditorProperties property that can be set:
    • MinValue: The minimal value allowed for the control. Data Type: int. Default Value: 0.
    • MaxValue: The maximal value allowed for the control. Data Type: int. Default Value: 2147483647.

NumUpDownesginer

 NumericResult

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.