Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to use ASPxGridLookup inside an ASPxGridView GridViewDataComboBoxColum bound to LinqServerModeDataSource in two-way

$
0
0

This example demonstrates how to utilize the GridViewDataComboBoxColumn that retrieves "lookup" values via the Dynamic List Population mode (in a browse ASPxGridView mode).

The ASPxGridLookup, which is defined within the column's EditItemTemplate, is used as the column's editor and bound with a separate LinqServerModeDataSource control via the two-way binding option. This approach is useful when ASPxGridLookup should be bound to a large data source.

To use the default ASPxComboBox editor (produced by the GridViewDataComboBoxColumn PropertiesComboBox), which operates in a "Dynamic List Population" mode, simply remove the column's EditItemTemplate (with the ASPxGridLookup control) definition.

See also:
Server Mode Overview

Question Comments

Added By: Daniel Connor 1 at: 1/26/2017 12:43:46 PM    Hello,
In the Default.aspx.cs I get an error on DataClassesDataContext, saying it could not be found (I checked and there is a reference to System.Data.Linq in my project already)

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>