all ids start from 63
I want tatal count of those id
in ss I have used filter to show you
dt.asenumerable.where(function(a) a("Status").tostring.startswith("63")).tolist.count
Try this:
totalIdsCount = YourDataTable.AsEnumerable().Where(Function(row) row.Field(Of String)("Status").StartsWith("63")).Count()
Output Datatype of totalIdsCount
is System.Int32
Hope it helps!!
HI,
Can you try the following?
dt.AsEnumerable.Count(Function(r) r("status").ToString.StartsWith("63"))
Regards,
1 Like
The count is coming zero 0
Count is coming as Zero 0
can you try this use .trim
dt.asenumerable.where(function(a) a("Status").tostring.trim.startswith("63")).tolist.count
Same it is not giving the count
coming Zero 0
It works ! Thank You So Much Shiva_Nikhil
1 Like
It work with some modification = ToString.Trim.StartWith…
Thank You So Much Parvathy
1 Like
It work with some modification = ToString.Trim.StartWith…
Thank You So Much Yoichy
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.