Пример #1
0
        static public DataView gridBindDataSource(string sSelectSql, ref FineUIMvc.Grid gList)
        {
            DataView dView = getDataSource(sSelectSql);

            gList.DataSource = dView;
            gList.DataBind();
            return(dView);
        }
Пример #2
0
        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();
        }
Пример #3
0
        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);
        }