随笔分类 -  winfrom

gridview
摘要:ActionSource = new BindingSource(); ActionSource.DataSource = step; ActionSource.DataMember = "Actions"; 阅读全文
posted @ 2022-07-13 18:37 一起看海吗 阅读(63) 评论(0) 推荐(0)
摘要:var tBoxSource = (BM.Class.Phase.State.Condition)tBoxMConditionsExpression.BindingContext[ConditionsSource].Current; 阅读全文
posted @ 2022-07-13 18:35 一起看海吗 阅读(144) 评论(0) 推荐(0)
摘要:当一个数据源需要作为多个控件的数据源时,绑定步骤 1.新建BindingSource作为数据源,并将原始数据源赋给BindingSource source = new BindingSource(); source.DataSource = step.Actions; 2.将datagridview 阅读全文
posted @ 2022-06-06 10:28 一起看海吗 阅读(570) 评论(0) 推荐(0)
摘要:string selName = this.gridView1.GetDataRow(this.gridView1.GetSelectedRows()[0]).ItemArray[0].ToString();//获取选中行的某列的值 阅读全文
posted @ 2021-11-19 16:41 一起看海吗 阅读(290) 评论(0) 推荐(0)