Retrieve all selected records of a datasource in a Grid
int recordsCount;
    Student     studentLocal;
    super();
    recordsCount = student_ds.recordsMarked().lastIndex();  // Total no of marked records.
    studentLocal = student_ds.getFirst(1);
    while (studentLocal)
    {
        info(studentLocal.Name +" " +studentLocal.ID);
        studentLocal = student_ds.getNext();
    }
 
No comments:
Post a Comment