How Can I Use DataTable.Select() on a field of type byte[]?

  • Thread starter Thread starter Leon_Amirreza
  • Start date Start date
L

Leon_Amirreza

Suppose there is a field f1 of type byte[] on table1!
How should I write the select expressions! this doesnt work and causes
error:
table1.Select("f1 = 0xefcda9", "")
also this doesnt work too on c#:
table1.Select("f1 = '0xefcda9'", "")
 
Hi Leon,

You might add a bool column (in memory) to the datatable, set it
accordingly to your condition and then filter (or select) on that column (or
just do a foreach loop and compose your result manually).
I don't think you'll be able to do it with Select method easily.

Miha
 
Back
Top