I have a DataGridView that I want to query using Linq (C# WinForm). I want to ‘count’ rows where a certain criteria is met. For example,
variable1 = 'count rows where ColumnBoxAge > 3 || < 5' label1.Text = variable1
How to do this in C# WinForm using Linq?
I don’t know if it could work but you can try this;
Edit : Where instead of Select.