C# winform

博客园 联系 订阅 管理
  10 Posts :: 1 Stories :: 8 Comments :: 0 Trackbacks

News

08 2009 档案

摘要: ///默认开始添加的节点为根节点DataTable dt = new DataTable(); private void bindtree(TreeNode addFather, string father) { DataRow[] drs = null; if (father != null && father != "") { drs = dt.Select("FatherNo...阅读全文
posted @ 2009-08-29 20:54 fffdc 阅读(434) | 评论 (2) 编辑

摘要: //////让所有列都显示出来 ///将最后一列的 AutoSizeMode 属性设置为 Fill,并对其他列使用其他调整大小选项。如果其他列使用了过多的可用空间,可设置最后一列的 MinimumWidth属性。设定背景颜色 ------------交替行样式this.dataGridView2.RowsDefaultCellStyle.BackColor = Color.Bisque; //默认...阅读全文
posted @ 2009-08-18 20:31 fffdc 阅读(1031) | 评论 (1) 编辑

摘要: 当在一个combobox1中选择某一项号,另一个combobox2中也跟着变化 做法如下:load()事件DAL.ProjectCollection c = DAL.DB.Select().From(DAL.Project.Schema).ExecuteAsCollection<DAL.ProjectCollection>(); comboBox1.DisplayMember = DA...阅读全文
posted @ 2009-08-10 12:17 fffdc 阅读(682) | 评论 (0) 编辑