随笔分类 - winfrom
gridview
摘要:ActionSource = new BindingSource(); ActionSource.DataSource = step; ActionSource.DataMember = "Actions";
阅读全文
摘要:var tBoxSource = (BM.Class.Phase.State.Condition)tBoxMConditionsExpression.BindingContext[ConditionsSource].Current;
阅读全文
摘要:当一个数据源需要作为多个控件的数据源时,绑定步骤 1.新建BindingSource作为数据源,并将原始数据源赋给BindingSource source = new BindingSource(); source.DataSource = step.Actions; 2.将datagridview
阅读全文
摘要:string selName = this.gridView1.GetDataRow(this.gridView1.GetSelectedRows()[0]).ItemArray[0].ToString();//获取选中行的某列的值
阅读全文

浙公网安备 33010602011771号