How can I get all modules from the array like below where student firstName, using Linq in C# and Asp.net. It\'s something probably easy to do but have failed to get the trick.
You should avoid ArrayLists. Use List instead.
List StudentList = new List(); /* ... */
And you query should look like:
var query = from student in StudentList where student.FirstName == "Cesar" select student;
Then bind your Grid:
GridView1.DataSource = query.ToList(); GridView1.DataBind();