private void GetAllRows()
 {
     if (Selection == null)
     {
         if (all)
         {
             collection = controller.FetchAll(OrderBy, OwnerColumn, OwnerID);
             numrows    = controller.FetchAllCount(OwnerColumn, OwnerID);
         }
         else
         {
             collection = controller.FetchAllPaged((PageNumber - 1) * PageSize, PageSize, OrderBy, OwnerColumn, OwnerID);
             numrows    = controller.FetchAllCount(OwnerColumn, OwnerID);
         }
     }
     else
     {
         StringBuilder columns = new StringBuilder();
         columns.Append("KD_VENDOR");
         columns.Append('\0');
         collection = controller.FetchSelected(columns.ToString().Split(new char[] { '\0' }, StringSplitOptions.RemoveEmptyEntries),
                                               Selection,
                                               OrderBy,
                                               OwnerColumn, OwnerID);
         numrows   = collection.Count;
         Selection = null;
     }
 }