Hi,
I have a gridview and I am autogenerating the gridview columns,but i want to fetch data from the gridview rows and for that I have to convert these autogenerated rows to template field form.Can you tell how can I change these dynamically created fields to
Template fields.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
public partial class _Default : System.Web.UI.Page
{
Conec conn;
SqlDataReader dr;
string fnm, lnm, sls;
int sl;
protected void Page_Load(object sender, EventArgs e)
{
conn=new Conec();
conn.conn();
dr=conn.fetch();
if (dr.HasRows == true)
{
GridView1.DataSource = dr;
GridView1.DataBind();
}
}
protected void Button2_Click(object sender, EventArgs e)
{
conn.dml_smt ...
Go to the complete details ...