Gridview edit not updating

Rated 4.29/5 based on 790 customer reviews

It compiled fine, but when I went to "edit" the record, I received this error: [Argument Out Of Range Exception: 'Drop Down List1' has a Selected Value which is invalid because it does not exist in the list of items. Oh well, I'll keep at it, because this should be an easy fix.Parameter name: value] I don't really know what that means, but it seems odd that the DDL couldn't find a value, because it was working fine before I put the Bind command in. Actually, looking at what you're trying to do a bit more closely, it looks like what you have is probably OK.Look for this in your data, and you will be able to fix the problem.

Based on their suggestions, I also added Append Data Bound Items="True" to it, but it doesn't really fix anything.

Many people all over the net are having this trouble too, and I've tried a ton of things.

I also added Inside the DDL, hoping that if I forced a default value into it, that it would work, but no.

From here, you should be able to simply bind the Selected Value property of the Drop Down List using two-way databinding, like this: Actually, looking at what you're trying to do a bit more closely, it looks like what you have is probably OK.

From here, you should be able to simply bind the Selected Value property of the Drop Down List using two-way databinding, like this: I tried that and pretty sure I entered it exactly as you typed it (copy & paste FTW).

Leave a Reply