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

[Solved] Add New Row - DropDownList.SelectValue - Error

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rema43001
Top achievements
Rank 1
rema43001 asked on 10 Nov 2009, 04:52 PM
Hello:

I have in EditItemTemplate a DropDownList,
but this give a error, because in add new row this try to do bind("field_name")

Can you help me?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 11 Nov 2009, 09:21 AM
Hello Richard,

You can either set AppendDataBoundItems="true" for the dropdown list and add default empty item in the dropdown control or set a predefined value for the dropdown control onInitInsertCommand. Check out the section 'DropDownList has a SelectedValue which is invalid because it does not exist in the list of items' under the following help document for more information on this:
Known reasons for error messages

Thanks
Princy.
Tags
Grid
Asked by
rema43001
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or