This is a migrated thread and some comments may be shown as answers.

[Solved] Grid DropDown Column does not show while editing

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Divya Veeramachaneni
Top achievements
Rank 1
Divya Veeramachaneni asked on 20 Jul 2009, 08:35 PM
The grid dropdown column does not expand to select an item in edit mode. Are there any properties that are to be set to enable the dropdown.

Thanks,
Divya

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Jul 2009, 04:56 AM
Hi Divya,

When in browser mode, GridDropDownColumn looks and behaves like a standard GridBoundColumn. When in edit mode, however, it displays a drop-down control for each edited cell in the column. This column type is useful for lookup fields from data tables. To bind this column type:

  • Set the DataField property to the name of a field in the data source of the table view that contains the column.
  • Set the DataSourceID property to the ID of a data source control for the lookup list. If the data source contains multiple tables, set the ListDataMember property to the name of the lookup table.
  • Set the ListTextField property to the name of the field in the lookup table that provides the text of items in the drop-down control.
  • Set the ListValueField property to the name of the field in the lookup table that supplies the value for the field specified by the DataField property.

For more information on configuring GridDropDownColumn, see Customize/Configure GridDropDownColumn.

Regards
Shinu
Tags
Grid
Asked by
Divya Veeramachaneni
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or