Ejemplo n.º 1
0
        protected void FillGridData()
        {
            DataTable dt = new DataTable();

            dt = clsobj.GetFeaturedProperties();
            DataView dv = dt.DefaultView;

            if (strSortExpression != "" && strSortDirection != "")
            {
                dv.Sort = strSortExpression + " " + strSortDirection;
            }
            if (dt.Rows.Count > 0)
            {
                grdFeatures.DataSource = dt;
                grdFeatures.DataBind();
                grdFeatures.PageIndex = intPageIndex;
            }
            else
            {
                grdFeatures.EmptyDataText = "no feature property added yet! Click to create feature";
            }
        }