public MyDataGridPager() { // // TODO: Add constructor logic here // columnDictionary = new SortedDictionary <int, Column>(); gridIndexByColumnName = new SortedDictionary <string, int>(); Sort = MyDataSort.ASC; PageNumber = 1; }
public MyDataGridComplexPager(string connnectionString, string tableName, int rowsToDisplay = 5) { // // TODO: Add constructor logic here // dataGridTable = new DataTable(); columnDictionary = new SortedDictionary <int, DatabaseRowObject.DatabaseColumnObject>(); gridIndexByColumnName = new SortedDictionary <string, int>(); databaseConnection = new System.Data.SqlClient.SqlConnection(connnectionString); databaseTableName = tableName; Sort = MyDataSort.ASC; PageNumber = 1; NumberRowsToDisplay = rowsToDisplay; whereClause = new StringBuilder(); }