Resolve the missing content of WebGrid’s DropDownList edit type column during edit mode

Applies to: WebGrid 7.0
| Tags: WebGrid, Editing, DropDownList, EditType, Edit, Missing Content
Published on: July 14, 2011 | Last Modified on August 4, 2011
Rate this topic:
     

Summary

This article describes how to resolve the missing content of WebGrid’s DropDownList edit type column during edit mode. The missing content is fixable in two conditions; Data Member is already known before runtime, and Data Member can be known at runtime.

Content

The DropDownList edit type column may not show any content during edit mode, although the value list has been assigned with the data source.

The problem occurred when the there is a change on Data Member property during or after the data source has been initialize. This action causes the value list that has been assigned to the data source to become expired.

If the data structure is known before runtime, the Data Member can be set within the Visual Studio Design-time.

If the data structure is not known after or at runtime, the Data Member needs to be assigned during the Page_Load event or before the WebGrid’s InitializeDataSource event.

References

For more information about WebGrid and its features, see WebGrid Overview.

For more information about Custom Editor Selection in WebGrid, see Custom Editor Selection Overview.

For additional How-to topics, Videos, Knowledge Base and other learning resources available for WebGrid, see WebGrid Support.

Note: This is a "QUICK PUBLISH" article created directly from within the Intersoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.