摘要: ///默认开始添加的节点为根节点DataTable dt = new DataTable(); private void bindtree(TreeNode addFather, string father) { DataRow[] drs = null; if (father != null && father != "") { drs = dt.Select("FatherNo...阅读全文
08 2009 档案
摘要: //////让所有列都显示出来 ///将最后一列的 AutoSizeMode 属性设置为 Fill,并对其他列使用其他调整大小选项。如果其他列使用了过多的可用空间,可设置最后一列的 MinimumWidth属性。设定背景颜色 ------------交替行样式this.dataGridView2.RowsDefaultCellStyle.BackColor = Color.Bisque; //默认...阅读全文
摘要: 当在一个combobox1中选择某一项号,另一个combobox2中也跟着变化 做法如下:load()事件DAL.ProjectCollection c = DAL.DB.Select().From(DAL.Project.Schema).ExecuteAsCollection<DAL.ProjectCollection>(); comboBox1.DisplayMember = DA...阅读全文