'System.Data.EvaluateException' problem

  • Thread starter Thread starter Sébastien
  • Start date Start date
S

Sébastien

Hi,

Why do I get a 'System.Data.EvaluateException' when I do
DataSet.Table(strTable).Rows.Add(DataRow) ? My DataRow have 2 fieldas than I
filled with a primary key (numeric) and a text field (string). To generate
that line, I did DataRow = DataSet.Table(strTable).NewRow.

The error says unable to assign operator '=' on System.Int16 and
System.String. (or something like that since I translate it from French).

Thank you.
 
I'll answer myself.

The problem happen when I set a RowFilter on my DataTable and my DataTable is empty. I found my problem with this link:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1036/dv_vbcode/html/vbtskCodeExampleFilteringDataInDataView.htm
 
Back
Top