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

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'", "")
 
M

Miha Markic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top