Re: How to select on datatable to exclude objects
- From: "Norman Yuan" <NotReal@xxxxxxxxxxx>
- Date: Wed, 19 Apr 2006 12:37:29 -0700
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,
.
- Follow-Ups:
- Re: How to select on datatable to exclude objects
- From: Sreppohcdoow
- Re: How to select on datatable to exclude objects
- References:
- How to select on datatable to exclude objects
- From: Sreppohcdoow
- How to select on datatable to exclude objects
- Prev by Date: Re: ADO.NET Transaction Locking
- Next by Date: Re: Operation must use an updateable query... while trying to write to Excel file
- Previous by thread: How to select on datatable to exclude objects
- Next by thread: Re: How to select on datatable to exclude objects
- Index(es):