Re: How to select on datatable to exclude objects

Tech-Archive recommends: Speed Up your PC by fixing your registry



If your condition is "myStringColumn length > 0", is seems that you can
simply:

DataRow[] rs=myDatatable.Select("myStringColumn length = 0")

or

DataRow[] rs=myDatatable.Select("myStringColumn length <= 0")

Assume the row on that column is not nullable. Is this way of one line code
not clean enough?


"Sreppohcdoow" <Sreppohcdoow@xxxxxxxx> wrote in message
news:u1%23pRE%23YGHA.3752@xxxxxxxxxxxxxxxxxxxxxxx
I.e., I want to select all rows in a datatable that don't match a
condition...

Explicitly:

myDatatable.Select("myStringColumn length > 0")

Of course, I could select them all, then check the condition afterward..
is there a cleaner way?

Thx,



.