how to get last distinct value from datatable c# ado.net [closed]











up vote
0
down vote

favorite












i have below code its get distinct First Row but i want last distinct Row... any idea how to get last distinct value from datatable



var filterdt = dt.DefaultView.ToTable( /*distinct*/ true);









share|improve this question















closed as too broad by Robert Harvey Nov 17 at 17:34


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • docs.microsoft.com/en-us/dotnet/api/…
    – Robert Harvey
    Nov 17 at 16:39










  • @RobertHarvey can you help me this please.. i was try but not success
    – JOhns
    Nov 17 at 17:28










  • Have you ever used First or FirstOrDefault? Works the same way. If you don't know those, then you just need to get better at Linq.
    – Robert Harvey
    Nov 17 at 17:34

















up vote
0
down vote

favorite












i have below code its get distinct First Row but i want last distinct Row... any idea how to get last distinct value from datatable



var filterdt = dt.DefaultView.ToTable( /*distinct*/ true);









share|improve this question















closed as too broad by Robert Harvey Nov 17 at 17:34


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • docs.microsoft.com/en-us/dotnet/api/…
    – Robert Harvey
    Nov 17 at 16:39










  • @RobertHarvey can you help me this please.. i was try but not success
    – JOhns
    Nov 17 at 17:28










  • Have you ever used First or FirstOrDefault? Works the same way. If you don't know those, then you just need to get better at Linq.
    – Robert Harvey
    Nov 17 at 17:34















up vote
0
down vote

favorite









up vote
0
down vote

favorite











i have below code its get distinct First Row but i want last distinct Row... any idea how to get last distinct value from datatable



var filterdt = dt.DefaultView.ToTable( /*distinct*/ true);









share|improve this question















i have below code its get distinct First Row but i want last distinct Row... any idea how to get last distinct value from datatable



var filterdt = dt.DefaultView.ToTable( /*distinct*/ true);






c# asp.net linq datatable ado.net






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 17 at 16:36

























asked Nov 17 at 15:13









JOhns

417




417




closed as too broad by Robert Harvey Nov 17 at 17:34


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as too broad by Robert Harvey Nov 17 at 17:34


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • docs.microsoft.com/en-us/dotnet/api/…
    – Robert Harvey
    Nov 17 at 16:39










  • @RobertHarvey can you help me this please.. i was try but not success
    – JOhns
    Nov 17 at 17:28










  • Have you ever used First or FirstOrDefault? Works the same way. If you don't know those, then you just need to get better at Linq.
    – Robert Harvey
    Nov 17 at 17:34




















  • docs.microsoft.com/en-us/dotnet/api/…
    – Robert Harvey
    Nov 17 at 16:39










  • @RobertHarvey can you help me this please.. i was try but not success
    – JOhns
    Nov 17 at 17:28










  • Have you ever used First or FirstOrDefault? Works the same way. If you don't know those, then you just need to get better at Linq.
    – Robert Harvey
    Nov 17 at 17:34


















docs.microsoft.com/en-us/dotnet/api/…
– Robert Harvey
Nov 17 at 16:39




docs.microsoft.com/en-us/dotnet/api/…
– Robert Harvey
Nov 17 at 16:39












@RobertHarvey can you help me this please.. i was try but not success
– JOhns
Nov 17 at 17:28




@RobertHarvey can you help me this please.. i was try but not success
– JOhns
Nov 17 at 17:28












Have you ever used First or FirstOrDefault? Works the same way. If you don't know those, then you just need to get better at Linq.
– Robert Harvey
Nov 17 at 17:34






Have you ever used First or FirstOrDefault? Works the same way. If you don't know those, then you just need to get better at Linq.
– Robert Harvey
Nov 17 at 17:34



















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy