Get Column name value of the highest row count of list of Datatable

Hello @wonderingnoname ,

Please refer the below post. You can pass the column name and create it as a dictionary or you can build a datatable.

TestDt.AsEnumerable().Select(Function(x) x.Field(Of String)(“YourColumnName”).Trim).ToArray().Where(Function(y) Not String.IsNullOrEmpty(y)).ToArray().Count

1 Like