Ejemplo n.º 1
0
    private void FillCategoryGridView()
    {
        CategoryBAL balCategory = new CategoryBAL();
        DataTable   dtCategory  = new DataTable();

        dtCategory = balCategory.SelectAll();

        if (dtCategory != null && dtCategory.Rows.Count > 0)
        {
            gvCategory.DataSource = dtCategory;
            gvCategory.DataBind();
        }
    }