I got a function to load a grid view and works fine. Then, I got a button, when click, I wanted to add a new row into the grid, what I did is I add a new to to the dataset and rebind the dataset to the grid view.
The problem I faced is that is it able to add a new row, but it only shows ONE column only, which is the most left column.
protected void gvDetail_AddNewRow(object sender, System.EventArgs e)
string strSQL = null;
DataSet ds = new DataSet();
lblError.Text = "";
strSQL = "Select * From tmp_Detail_Data_vaio1045xjh02l55bw4vtrmg_09282010_132652";
ds = clsDataAccess.clsDataAccess.RetrieveDataSet(clsDataAccess.clsDataAccess.ConnStringDataCollection, strSQL);
if (ds != null)
ContentPlaceHolder myContent = (ContentPlaceHolder)Page.Master.FindControl("CPHDetail");
GridView gvView = (GridView)myContent.FindControl("gvDetail");
gvView.DataSource = ds;
View Complete Post