Ok, I'm getting a null reference exception whenever I try to databind this datatable to the Gridview. I know for sure that the datatable has data. I've checked it.
GridView dg = new GridView();
dg.ID = "dg";
DataTable dattbl = Core.Transreports(Request.QueryString["itemaddress"], Request.QueryString["docnum"], Request.QueryString["docid"]);
dg.AllowPaging = true;
dg.PageSize = 10;
dg.AutoGenerateColumns = true;
dg.DataSource = dattbl;
dg.DataBind();
I get the error when it gets to the last line here... please help me. I'm at a loss for whats going on here.
...
Go to the complete details ...