1.How can I put a combobox in a column of a datagrid?
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q
2.可以在datagrid的数据源上加入一行作为合计
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q
2.可以在datagrid的数据源上加入一行作为合计
解决方案 »
- 求一半地主游戏的代码
- c#向dll传递结构体指针的问题
- 谁能提供一个 能从 excle 读取数据 到 数据库的 方法……
- 请教大家,如何简便地从一个字符串中取出所有的数字,例如输入“ab12cd34", 输出”1234“, 如果用正则表达式怎么实现呢?
- 请教一个问题,请大家指导一下!谢谢.救急!
- (急急急……)关于C#复制ACCESS数据库中的数据并保存到oracle数据库中
- 求一个高效率的字符串处理代码
- 关于控制台程序关闭的问题
- 如何把table里的内容写入数据库又读出来
- TreeView中能否使用更为复杂的数据结构?
- 怎样在c#.net下制作控件数组
- 再次请各位帮帮忙,一个关于数据库的问题!急等!
DataRow anyRow = dataTB.NewRow();
anyRow[0] = System.DateTime.Now.ToShortDateString(); string anyrow = JSPJround(textBox1.Text,this.label3.Text);
this.label5.Text = anyrow;
if(this.checkBox1.Checked)
{
anyRow[1] = anyrow;
dataTB.Rows[0][1] = double.Parse(this.dataGrid1[0,1].ToString()) + double.Parse(anyrow);
}
if(this.checkBox2.Checked)
{
anyRow[2] = anyrow;
dataTB.Rows[0][2] = double.Parse(this.dataGrid1[0,2].ToString()) + double.Parse(anyrow);
}
if(this.checkBox3.Checked)
{
anyRow[3] = anyrow;
dataTB.Rows[0][3] = double.Parse(this.dataGrid1[0,3].ToString()) + double.Parse(anyrow);
}
if(this.checkBox4.Checked)
{
anyRow[4] = anyrow;
dataTB.Rows[0][4] = double.Parse(this.dataGrid1[0,4].ToString()) + double.Parse(anyrow);
}
if(this.checkBox5.Checked)
{
anyRow[5] = anyrow;
dataTB.Rows[0][5] = double.Parse(this.dataGrid1[0,5].ToString()) + double.Parse(anyrow);
}
if(this.checkBox6.Checked)
{
anyRow[6] = anyrow;
dataTB.Rows[0][6] = double.Parse(this.dataGrid1[0,6].ToString()) + double.Parse(anyrow);
}
if(this.textBox1.Text!="")
{
anyRow[7] = anyrow;
dataTB.Rows[0][7] = double.Parse(this.dataGrid1[0,7].ToString()) + double.Parse(this.textBox1.Text);
// anyRow[7] = double.Parse(this.textBox1.Text).ToString("F2");
// dataTB.Rows[0][7] = double.Parse(this.dataGrid1[0,7].ToString()) + double.Parse(anyRow[1].ToString());
}
dataTB.Rows.Add(anyRow);
DevExpress.XtraGrid
偶发给你,注册的