gridview row select [modified]
-
i have one button and one gridview in that i have filled data using
public void GetData() { SqlConnection con = new SqlConnection(constr); string cmd = "select a.errname as ErrorName, m.errortype as ErrorType, a.errpointsdeducted as PointsDeduction, convert(varchar,a.createddate,104) as CreatedDate from auditerrors a,auditerrormaster m where a.errtypeid=m.internalid order by m.errortype"; SqlDataAdapter da = new SqlDataAdapter(cmd,con); DataSet ds = new DataSet(); DataTable dt = new DataTable(); da.Fill(ds, "auditerrors"); dt = ds.Tables["auditerrors"]; gvAuditErrors.DataSource=ds.Tables[0]; gvAuditErrors.DataBind();}
in the same project i have another page with one text box in it. i want to select a row in the grid view and after selecting a row in grid view when i click on the button i want to transfer the createddate of that particular row in to the textbox of the other page if anybody got the solution plz do let me know tasks: selecting a row on double clicking the row transfering the content from first page to the other regards sunil -- modified at 5:07 Thursday 22nd November, 2007 -
i have one button and one gridview in that i have filled data using
public void GetData() { SqlConnection con = new SqlConnection(constr); string cmd = "select a.errname as ErrorName, m.errortype as ErrorType, a.errpointsdeducted as PointsDeduction, convert(varchar,a.createddate,104) as CreatedDate from auditerrors a,auditerrormaster m where a.errtypeid=m.internalid order by m.errortype"; SqlDataAdapter da = new SqlDataAdapter(cmd,con); DataSet ds = new DataSet(); DataTable dt = new DataTable(); da.Fill(ds, "auditerrors"); dt = ds.Tables["auditerrors"]; gvAuditErrors.DataSource=ds.Tables[0]; gvAuditErrors.DataBind();}
in the same project i have another page with one text box in it. i want to select a row in the grid view and after selecting a row in grid view when i click on the button i want to transfer the createddate of that particular row in to the textbox of the other page if anybody got the solution plz do let me know tasks: selecting a row on double clicking the row transfering the content from first page to the other regards sunil -- modified at 5:07 Thursday 22nd November, 2007please anybody send me some solution