K
KavvY
The following code produces the error, "cannot implicitly convert type
object to type string"
int intRetNo = Convert.ToInt32(tbxReturnNo.Text);
lblOutput.Text = (intRetNo.ToString());
lblOutput.Visible = true;
DataRow fRow =
dsGoodsReturned1.Goods_Returned.FindByComplaint_number(intRetNo);
// line below produces same error
// lblOutput.Text =
dsGoodsReturned1.Tables["Goods_Returned"].Rows[intRetNo]["ProductID"];
// this line produces error
lblOutput.Text = fRow["ProductID"];
How can I access the data in the Dataset? It seems to be getting to the
correct row but actually getting the data out of it is proving to be
difficult1
Cheers
rich.
object to type string"
int intRetNo = Convert.ToInt32(tbxReturnNo.Text);
lblOutput.Text = (intRetNo.ToString());
lblOutput.Visible = true;
DataRow fRow =
dsGoodsReturned1.Goods_Returned.FindByComplaint_number(intRetNo);
// line below produces same error
// lblOutput.Text =
dsGoodsReturned1.Tables["Goods_Returned"].Rows[intRetNo]["ProductID"];
// this line produces error
lblOutput.Text = fRow["ProductID"];
How can I access the data in the Dataset? It seems to be getting to the
correct row but actually getting the data out of it is proving to be
difficult1
Cheers
rich.