if so how?
To select by a primary key you should use one of:
DataTable.Rows.Find(Object)
in case your PK is one columnDataTable.Rows.Find(Object[])
in case you have more then 1 column as a primary keyIn case of a typed DataSet, the method MyDataTable.Rows.Find(...)
will be generated for you with the proper signature. Basically it is a method on DataRowCollection class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With