Esempio n. 1
0
        public JQGrid GetJQGrid(DataTable dataTable, int totalRecords)
        {
            if (dataTable.Columns.Contains("PageNumber")) dataTable.Columns.Remove("PageNumber");

            JQGrid jqg = new JQGrid
            {
                page = page,
                records = totalRecords,
                total = Convert.ToInt32(Math.Ceiling((double)totalRecords / rows))
            };
            jqg.AddRows(dataTable);
            return jqg;
        }