I am having trouble finding a row in a datatable
I have a datatable that I build programmatically.
One of the column in the table is a System.Int32 and its called "ID"
The code to set this column in the table is
col = new DataColumn();
col.DataType = System.Type.GetType("Syste
col.ColumnName = "ID";
Following the information found here
which indicates I can find a specific row in the datatable by using soemthign like this...
DataRow arow = dto.Select("ID = 'prodid'"); //prodid in an int variable
and the supposedly I can update a column in that row with this
arow["Quantity"] = newquant
However whenI try to run this code I get the error..
Exception Details: System.Data.EvaluateExcept
ion: Cannot perform '=' operation on System.Int32 and System.String.
Im kinda stuck here..I need to be able to find the row in the table where the ID column is equal to the prodid value...