static public DataView gridBindDataSource(string sSelectSql, ref FineUIMvc.Grid gList) { DataView dView = getDataSource(sSelectSql); gList.DataSource = dView; gList.DataBind(); return(dView); }
static public void gridSort(string sSelectSql, ref FineUIMvc.Grid gList, string sSortField, string sSortDirection) { DataView dView = gridBindDataSource(sSelectSql, ref gList); dView.Sort = String.Format("{0} {1}", sSortField, sSortDirection); gList.DataSource = dView; gList.DataBind(); }
static public DataView gridBindDataSourceNews(string sSelectSql, ref FineUIMvc.Grid gList) { DataView dView = getDataSourceRegister(sSelectSql); if (dView == null) { } else { gList.DataSource = dView; gList.DataBind(); } return(dView); }