Consider following code.
you want to set dddw_emp as new dddw with display column emp_name and datacolumn as emp_id.
// Changing the dddw.
.Modify(".DDDW.Name=dddw_emp")
// Setting display column
.Modify(".DDDW.DisplayColumn='emp_name'")
// Setting data column
.Modify(".DDDW.DataColumn='emp_id'")
Or
.Object.colname.dddw.name = "dddw_emp"
.Object.colname.dddw.displaycolumn = "emp_name"
.Object.colname.dddw.datacolumn = "emp_id"
Finally do not forget to call getchild to get new reference of dropdown.
(Any change in dddw or datacolumn or display column always call getchild)
阅读(1366) | 评论(0) | 转发(0) |