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();
}
}
Rojalin SahooRank #2,919 · 493 reputationPosted Aug 7, 2015, 3:04 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 7, 2015, 3:17 AM EDT
anjali khanRank #4,788 · 325 reputationPosted Aug 9, 2015, 10:14 PM EDT
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.
Rojalin SahooRank #2,919 · 493 reputationPosted Aug 12, 2015, 4:13 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 12, 2015, 4:34 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts