Handling a Concurrency Exception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi
in the Walkthrough: Handling a Concurrency Exception example seems to be an
error.
because of my actual knowlage, i cannot solve the problem

the expression custRow.Item does not exist!

private string GetRowData(NorthwindDataSet.CustomersRow custRow,
DataRowVersion RowVersion)
{
string rowData = "";

for (int i = 0; i < custRow.ItemArray.Length ; i++ )
{
rowData = rowData + custRow.Item(i, RowVersion).ToString() + " ";
}
return rowData;
}
thanks
 
W. Dengler said:
hi
in the Walkthrough: Handling a Concurrency Exception example seems to be
an
error.
because of my actual knowlage, i cannot solve the problem

the expression custRow.Item does not exist!

private string GetRowData(NorthwindDataSet.CustomersRow custRow,
DataRowVersion RowVersion)
{
string rowData = "";

for (int i = 0; i < custRow.ItemArray.Length ; i++ )
{
rowData = rowData + custRow.Item(i, RowVersion).ToString() + " ";
}
return rowData;
}
thanks

I think the Item property maps to the C# indexer, so try
rowData = rowData + custRow[i, RowVersion].ToString() + " ";

Chris Jobson
 
customerrow is a row object. there is no item, only an itemarry?

Chris Jobson said:
W. Dengler said:
hi
in the Walkthrough: Handling a Concurrency Exception example seems to be
an
error.
because of my actual knowlage, i cannot solve the problem

the expression custRow.Item does not exist!

private string GetRowData(NorthwindDataSet.CustomersRow custRow,
DataRowVersion RowVersion)
{
string rowData = "";

for (int i = 0; i < custRow.ItemArray.Length ; i++ )
{
rowData = rowData + custRow.Item(i, RowVersion).ToString() + " ";
}
return rowData;
}
thanks

I think the Item property maps to the C# indexer, so try
rowData = rowData + custRow[i, RowVersion].ToString() + " ";

Chris Jobson
 
Back
Top