i have a gridview ..in this i am display the data using data table without
using data base..so it is showing the data..
now i want if i click on gridview cell so it should be editable and save the data in tada table
it is possible or not..
i want the code please dont share me link because i am stuck in my task...
design code ///
Font-Bold="true" Width="100%" class="gv">
ce code ////
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[3] { new DataColumn("Id"), new DataColumn("Name"), new DataColumn("City") });
dt.Rows.Add(1, "abc", "Lathur");
dt.Rows.Add(2, "Rooppa", "Chennai");
dt.Rows.Add(3, "Monika", "Bangalore");
dt.Rows.Add(4, "Jyoti", "Chennai");
dt.Rows.Add(5, "Radhika", "Jabalpur");
gridview1.DataSource = dt;
gridview1.DataBind();
}
}
Rajeesh MenothPosted Aug 12, 2015, 8:34 AM
Rojalin SahooPosted Aug 12, 2015, 8:13 AM
anjali khanPosted Aug 10, 2015, 2:14 AM
Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Rajeesh MenothPosted Aug 7, 2015, 7:17 AM
Rojalin SahooPosted Aug 7, 2015, 7:04 AM