I have a datagrid called: dgRevCatDisplay. When the page loads no data gets displayed.
I tried setting a breakpoint on the datagrid all the objects and methods that instantiate the datagrid seem to be ok.
However in debug mode when I type the object name in the immediate window I get an error message that says object not in scope.
I do have the datagrid instantiated in the class:
protected System.Web.UI.WebControls.DataGrid dgRevCatDisplay.
I put a this before the datagrid. Data does exist in the database.
Here is my code:
OnlineCaseCategoryController occc = new OnlineCaseCategoryController();
this.dgRevCatDisplay.DataSource = occc.List();
this.dgRevCatDisplay.DataBind();
I tried setting a breakpoint on the datagrid all the objects and methods that instantiate the datagrid seem to be ok.
However in debug mode when I type the object name in the immediate window I get an error message that says object not in scope.
I do have the datagrid instantiated in the class:
protected System.Web.UI.WebControls.DataGrid dgRevCatDisplay.
I put a this before the datagrid. Data does exist in the database.
Here is my code:
OnlineCaseCategoryController occc = new OnlineCaseCategoryController();
this.dgRevCatDisplay.DataSource = occc.List();
this.dgRevCatDisplay.DataBind();