DataGrid怎样里加入CheckBox? 做惯啦WEB程序,一下子做应用程序还不适应,现在手头没有分啦,就以10请大家多多帮助帮助..我想在应用程序form中的datagrid中加入一个checkbox怎么加啦,有没有好的方法,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 many:http://blog.csdn.net/ChengKing/archive/2006/05/28/759064.aspx DataColumn selflag= new DataColumn ();selflag.DataType = System.Type.typeof("System.Boolean");selflag.ColumnName ="selflag";selflag.AllowDBNull = false;selflag.DefaultValue = false;selflag.ReadOnly = false;dt_customer.Columns.Add(selflag); 是某一列加checkbox,还是一个单元格加 DataTable table=new DataTable();;table.TableName="teacher";DataColumn col1=new DataColumn("是否",typeof(bool)); //bool类型就显示为CheckBoxtable.Columns.Add(col1);dataGrid1.DataSource=table; DataColumn selflag= new DataColumn ();selflag.DataType = System.Type.typeof("System.Boolean");selflag.ColumnName ="ColumnName";selflag.AllowDBNull = false;selflag.DefaultValue = false;selflag.ReadOnly = false;dt_customer.Columns.Add(selflag); 求C#实体解释 C#+SQLite.dll 太变态了!求高手解决啊 求解析xml节点本身的解析方法 C# 关于系统关机的求助 怎么能够得到Panel的不包括滚动条的区域的SIZE !!!!!挑战!!!!急请版主及各位高手朋友帮助,自定义table控件问题,我在线等待!!!!! winfrom编程中水晶报表 Winform程序应用了notifyicon托盘控件恢复窗口时出现的问题 帮忙 Timer问题 如何在系统的窗体上添加自己的窗体 DataGridView请教
http://blog.csdn.net/ChengKing/archive/2006/05/28/759064.aspx
selflag.DataType = System.Type.typeof("System.Boolean");
selflag.ColumnName ="selflag";
selflag.AllowDBNull = false;
selflag.DefaultValue = false;
selflag.ReadOnly = false;
dt_customer.Columns.Add(selflag);
table.TableName="teacher";
DataColumn col1=new DataColumn("是否",typeof(bool)); //bool类型就显示为CheckBox
table.Columns.Add(col1);
dataGrid1.DataSource=table;
selflag.DataType = System.Type.typeof("System.Boolean");
selflag.ColumnName ="ColumnName";
selflag.AllowDBNull = false;
selflag.DefaultValue = false;
selflag.ReadOnly = false;
dt_customer.Columns.Add(selflag);