D:\vs.net\WindowsApplication1\WindowsApplication1\Form1.cs(162): 无法将类型“object”隐式转换为“int”
da.Fill(ds,"vote");
DataTable myDatatable=ds.Tables["vote"];
DataColumnCollection myDcc=ds.Tables[0].Columns;
DataColumn[] myColumn={myDcc[2]};
DataRow myRow=ds.Tables[0].Rows[0];
Int32 j;
//textBox1.Text=ds.Tables["ly"].Rows[0].ItemArray[1].ToString();
if (radioButton1.Checked)
{
j=ds.Tables[0].Rows[0].ItemArray[2];//出错句
j=j+1;
da.Update(ds);
} }
da.Fill(ds,"vote");
DataTable myDatatable=ds.Tables["vote"];
DataColumnCollection myDcc=ds.Tables[0].Columns;
DataColumn[] myColumn={myDcc[2]};
DataRow myRow=ds.Tables[0].Rows[0];
Int32 j;
//textBox1.Text=ds.Tables["ly"].Rows[0].ItemArray[1].ToString();
if (radioButton1.Checked)
{
j=ds.Tables[0].Rows[0].ItemArray[2];//出错句
j=j+1;
da.Update(ds);
} }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货