in my db i have values as True/False/false/true…. i need to get only the Distinct Values as True and False and not the all values as True & False & false & true…
my code:
DataTable dv= dt.DefaultView.ToTable(true, col.header);
dv.Casesensitive=true;
but i got the values as True & False & false.
how to avoid both similar values even if they as caps / small letters and to get only True & False values.
it should be done only at the backend. in C# not through query……
With LINQ you can do something like this:
Here is a good blog post for you.