dataGridList.DataSource = Ds.tbHuman.DefaultView; 表tbHuman的字段又绑定到一些TextBox .FindC =
ComFun.GetSql(Fname[base.cBoxFieldC.SelectedIndex], Ftype[base.cBoxFieldC.SelectedIndex],
base.cBoxCondC.SelectedIndex, base.tBoxCondTxtC.Text);
string sql = FindA + " and " + FindB + " and " + FindC;
Ds.tbHuman.DefaultView.RowFilter = sql;经过上边的查询后,我怎么让TextBox 定位到DefaultView中选定的那一行
ComFun.GetSql(Fname[base.cBoxFieldC.SelectedIndex], Ftype[base.cBoxFieldC.SelectedIndex],
base.cBoxCondC.SelectedIndex, base.tBoxCondTxtC.Text);
string sql = FindA + " and " + FindB + " and " + FindC;
Ds.tbHuman.DefaultView.RowFilter = sql;经过上边的查询后,我怎么让TextBox 定位到DefaultView中选定的那一行
打个比方 textbox1 的text属性和 dataset对象(ds是一个dataset对象)中的表 uid 的 字段“序号”绑定后如:
TextBox1.DataBindings.Add(New Binding("text", ds.Tables(uid), "序号"))可以用: Me.BindingContext(ds.Tables(uid)).Position = row 来确定显示哪一行的字段值。(Me. 可有可无;那个 row 是个数值型是指要显示行的下标 )
http://blog.csdn.net/zhzuo/archive/2005/01/03/238273.aspx