C#是什么??

来源:百度知道 编辑:UC知道 时间:2024/06/04 04:27:52
private void button4_Click(object sender, EventArgs e)
{
ds.Tables["试题"].Rows[0].ItemArray[6] = "111";
MessageBox.Show(ds.Tables["试题"].Rows[0].ItemArray[6].ToString());
}

为什么messagebox显示的是空值,什么都没有?
ds是数据集,“试题”表已添加到ds中!!

string teststr=ds.Tables["试题"].Rows[0].ItemArray[6];

加断点,看teststr的值。

如果有值, MessageBox.Show(teststr);

如果无值, 你知道该怎么做了?

ds那来的。。。

标题党??

命名空间System.Windows.Forms

http://zhidao.baidu.com/question/100293259.html