G
Guest
hey all,
can someone please tell me why the following statment doesn't work?
((DropDownList)e.Row.Cells[2].FindControl("DrpSM_Skill_Desc")).SelectedValue=((DataRowView)e.Row.DataItem)[3];
Cannot implicitly convert type 'object' to 'string'. An explicit conversion
exists (are you missing a cast?)
I'm in the Immediate Window doing this and also the following looks like it
would set a dropdownlist.selectedvalue?
?((DataRowView)e.Row.DataItem)[3]
"Internet"
Thanks,
rodchar
can someone please tell me why the following statment doesn't work?
((DropDownList)e.Row.Cells[2].FindControl("DrpSM_Skill_Desc")).SelectedValue=((DataRowView)e.Row.DataItem)[3];
Cannot implicitly convert type 'object' to 'string'. An explicit conversion
exists (are you missing a cast?)
I'm in the Immediate Window doing this and also the following looks like it
would set a dropdownlist.selectedvalue?
?((DataRowView)e.Row.DataItem)[3]
"Internet"
Thanks,
rodchar