如何在DATAGRID的一行中添加CHECKBOX
不是CHECKBOX列!!
--------------
顺便问问如何只在DATAGRID的一个单元格中添加CHECKBOX!!!!!!
不是CHECKBOX列!!
--------------
顺便问问如何只在DATAGRID的一个单元格中添加CHECKBOX!!!!!!
解决方案 »
- C#winform程序,大数据集的时候,如何优化内存使用
- 如何输出一段HTML或XML字符串。在线等~
- TextBox1.Focus();为啥不起作用?
- 关于datagridview的列排序问题
- 急!急!各位大哥,大姐,帮小妹看一下吧,treeview怎么加标题呢?或listview怎么实现展开与折叠呢,或有没有treeview与listview相结合的控件哪有下载的呢?
- 问一个关于Devexpress Gridcontrol控件滚动条的问题?(在线等待。。。)
- 高分相询:怎样取得一个播放器的播放时间?????
- 文章“.net打包自动安装数据库”之后的问题
- 请问,MDI父窗体如何对当前子窗体中的方法进行调用?
- 弱问题: html属性 用c#变量
- 背景颜色的设定
- 有关强名称的Dll使用
bt1.Name = "sss";
bt1.Size = new System.Drawing.Size(15, 15);
bt1.Location = new System.Drawing.Point((dataGridView1.Rows[0].Cells[0].Size.Width - bt1.Width) / 2, (dataGridView1.Rows[0].Cells[0].Size.Height - bt1.Height) / 2);
bt1.TabIndex = 0;
bt1.Text = "ss";
bt1.UseVisualStyleBackColor = true;
bt1.Click+=new EventHandler(bt1_Click); this.dataGridView1.Controls.Add(bt1);只是显示在那个位置而已
private void TextBox_GotFocus(object sender, EventArgs e)
{
DataTable dtStandardName=new DataTable();
PreRow=(DataRowView)bind.Current;
dtStandardName=GetStandardName();
ComboBox mycombobox=new ComboBox();
mycombobox.Leave+=new EventHandler(mycombobox_Leave);
mycombobox.SelectedIndexChanged+=new EventHandler(mycombobox_SelectedIndexChanged);
mycombobox.Items.Clear();
Dir.GetList(dtStandardName,"StandardName",EnmGetListMode.Normal,mycombobox);
mycombobox.Items.Insert(0,String.Empty);
((TextBox)sender).Controls.Add(mycombobox);
mycombobox.Text=((TextBox)sender).Text;
mycombobox.Size=new Size(((TextBox)sender).Width,((TextBox)sender).Height);
this.colStandardName.TextBox.GotFocus-=new EventHandler(TextBox_GotFocus);
this.colStandardName1.TextBox.GotFocus-=new EventHandler(TextBox_GotFocus);
mycombobox.Focus();
}
this.colStandardName.TextBox.GotFocus-=new EventHandler(TextBox_GotFocus);
this.colStandardName1.TextBox.GotFocus-=new EventHandler(TextBox_GotFocus);
mycombobox.Focus();