List object displays in a data grid

For example, I have a class such as : class student { student NO, first name, last name, birthday}, then I create a list of Student as: List listSudent = new list student(){ .... }, with count 10, i.e., 10 students. if I want to display only the first four students in a datgrid, how can I do that?



You can use Linq extension methods to get only the first 4 items of your list.

<RadzenDataGrid Data=@firstFourStudents>
var firstFourStudents = listStudent.Take(4);