You need to take this to the data table and using LINQ you can get the Distinct record
// Assuming your DataTable is named 'dataTable' and the column name is 'columnName'
var distinctValues = dataTable.AsEnumerable()
.Select(row => row[columnName]) // Project each row to the desired column value
.Distinct() // Get distinct values
.ToList(); // Convert to a List (optional)
dataTable.AsEnumerable()
.Select(row => row[columnName]) // Project each row to the desired column value
.Distinct() // Get distinct values
.ToList(); // Convert to a List (optional)
[/quote]can please write this linq crearly iam not able to understand