M
Mike
I haven't been able to find any posts about this problem.
When I set the DataValueField to be something, the control
loses it's selected index when returning from the
postback. If I set only the DataTextField I have no
problems.
I set the DataTextField and DataValueFields like so:
ddlBU.DataTextField="BU"; -- each value is unique
ddlBU.DataValueField = "ORG_ID"; -- is 1 of 2 values
It seems that the because Org_Id is not unique in the
dataset it is screwing up the index of the control by
setting the SelectedIndex to be the first ListItem it
finds with a DataValueField matching that of the
originally selected item.
Anyone know of a work around ?
When I set the DataValueField to be something, the control
loses it's selected index when returning from the
postback. If I set only the DataTextField I have no
problems.
I set the DataTextField and DataValueFields like so:
ddlBU.DataTextField="BU"; -- each value is unique
ddlBU.DataValueField = "ORG_ID"; -- is 1 of 2 values
It seems that the because Org_Id is not unique in the
dataset it is screwing up the index of the control by
setting the SelectedIndex to be the first ListItem it
finds with a DataValueField matching that of the
originally selected item.
Anyone know of a work around ?