Im importing CSV file into a list called Students (List
ID, First Name, Last Name, E-mail
above code is successfully save data into Students List. After doing that I wanna add details manually from textboxes and I wanna check the List(Students) weather the List already have a same ID that user enters. if so ask conformation for update List specific record... ?
2nd part
I wanna separate the students for Group wise. Group have to contain minimum - 2 , maximum- 4 students. I don't have a idea for separate them.
Help me.. Thanks
Jignesh TrivediPosted May 6, 2014, 5:03 AM
hi,
try following code...
List test = new List();
test.Add(new string[] { "1", "2", "3" });
test.Add(new string[] { "1", "2", "3", "1", "2", "3" });
test.Add(new string[] { "1", "2", "3" });
test.Add(new string[] { "1" });
test.Add(new string[] { "1", "2", "3" });
test.Add(new string[] { "1", "2", "3", "1", "2", "3", "1", "2", "3" });
var ptest = from v in test
where v.Length >= 2 && v.Length <= 4
select v;
hope this will help you.