Well the empty database was not the initial problem. This solved it:
protected void Page_Load(object sender, EventArgs e)
{
//DATA GRID VIEW FILL
clsUploadCallArray getallcalls = new clsUploadCallArray(emp.E_mobile.ToString());
int c = getallcalls.UploadCallsObj.Count;
DataSet uploadDS = getallcalls.UplCallDS;
DataTable uploadDT = uploadDS.Tables["Upload"];
dgv_Calls.DataSource = uploadDT;
dgv_Calls.DataBind(); //this was most crucial line
dgv_Calls.Visible = true;
}
NOTE: I'm still working on the
dgv_Calls.Columns[0].HeaderText = "ID";
part...Cause it still gives an non-negative number error.
phoenix_dwarf
Junior Poster in Training
57 posts since May 2009
Reputation Points: 11
Solved Threads: 0
Right, sorted. Here is the solution for the column user specified columns in the datagrid view!
dgv_Calls.HeaderRow.Cells[0].Text = "ID";
dgv_Calls.HeaderRow.Cells[1].Text = "Tel";
I hope that this will help some of you out there!
phoenix_dwarf
Junior Poster in Training
57 posts since May 2009
Reputation Points: 11
Solved Threads: 0