pb中如何给DropDownListBox下拉列表控件设置一个初始值:给表字段设置初始值()
1 // 新增一行事件 2 3 Long ll_row 4 String ls_value = "2" 5 //// 执行新增一行前先给表字段设置初始值(下拉列表初始值“二级”) 6 //dw_1.modify('mes_grade.initial="'+ls_value+'"') 7 ll_row = this.InsertRow(0) 8 9 this.SetRow(ll_row) 10 // 滚动到指定行 11 this.ScrollToRow(ll_row) 12 // 设置当前列 13 this.SetColumn("mes_title") 14 this.object.datawindow.HorizontalScrollPosition = 0 15 this.SetFocus() 16 17 Return ll_row
也可以在数据窗口对象中直接设置,如下“一级”
