Datagrid Edits

J

Jim Heavey

Hello, I have a datagrid that I have configured to bind
to "table1". I created and "EditItemTemplate" which is
also bound to "table1" except for two columns which I
bound to "table2" and "table3" which support
DropDownList. These table contain the list of valid
values which can be selected from the drop down list.

When a user successfully edits a line, I take the
appopriate values from the DropDownList and place those
values into "Table1".

But when the user re-edits that same line, I am looking
for some way to set the "selectedIndex" property on
DropDownList for "table2" and "table3" to the values
which are currently set in "Table1". I don't think I can
use the Edit_Command, Update_Command or the
Cancel_Command to set the index. So is there some event
I can use to safely "prep" the dropdownlist to the
appropriate value when the line is re-edited?

Thanks in advance for your assistance!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,828
Latest member
LauraCastr

Latest Threads

Top