<%#Eval("Folio_Number")%>
<%-- <%#DataBinder.Eval(Container.DataItem, "Folio_Number").ToString()%>--%>
<%#Eval("AMC_CODE")%>
<%-- <%#DataBinder.Eval(Container.DataItem, "AMC_Code").ToString()%>--%>
<%#Eval("S_Name")%>
my .cs page
protected void gwdFolioScheme_RowEditing(object sender, GridViewEditEventArgs e) //when i debbuger set this line i it does not come on this line
{
gwdFolioScheme.EditIndex = e.NewEditIndex;
gwdFolioScheme.DataBind();
}
protected void gwdFolioScheme_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
gwdFolioScheme.EditIndex = -1;
gwdFolioScheme.DataBind();
}
my problem is that why it is happen when i click edit button textbox does not display in gridview .that is i need to edit
what is changes required in above code
plz help me

Vincent Maverick DuranoPosted Apr 24, 2015, 3:06 PM
Perhaps this step by step example would help:
irfan mulaniPosted Apr 21, 2015, 8:56 AM
your gridview event is protected void gwdFolioScheme_RowEditing(object sender, GridViewEditEventArgs e)
and in your .aspx page you had event as OnRowEditing... then how it will fired...
replace protected void gwdFolioScheme_OnRowEditing(object sender, GridViewEditEventArgs e) in aspx.cs....
sagar BhosalePosted Aug 1, 2011, 1:33 AM
protected void gwdFolioScheme_RowEditing(object sender, GridViewEditEventArgs e)
{
gwdFolioScheme.EditIndex = e.NewEditIndex;
DropDownList ddl_Clnt = (DropDownList)Report_Selection1.FindControl("ddl_ClntList");
FillGridViewFolioScheme(ddl_Clnt.SelectedItem.Value.ToString());
}
why breakpoint not fired event on RowEditing due to this i can't edit my gridview
plz help me
sagar BhosalePosted Jul 30, 2011, 3:35 AM
protected void gwdFolioScheme_RowEditing(object sender, GridViewEditEventArgs e)
{
gwdFolioScheme.EditIndex = e.NewEditIndex;
DropDownList ddl_Clnt = (DropDownList)Report_Selection1.FindControl("ddl_ClntList");
FillGridViewFolioScheme(ddl_Clnt.SelectedItem.Value.ToString());
}
but when i click on Edit button in gridview breakpoint does not fire event on Rowedit &
page again load but breakpoint does not fire event on Rowedit
why it is happen ?
Plz help me
Thanx............
Suthish NairPosted Jul 30, 2011, 3:10 AM
sagar BhosalePosted Jul 30, 2011, 12:37 AM
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Default : System.Web.UI.Page
{
Masters MsObj = new Masters();
protected void Page_Load(object sender, EventArgs e)
{
}
private void FillGridViewFolioScheme(string Client_ID)
{
DataSet ds = new DataSet();
ds = MsObj.Get_FolioScheme(Client_ID);
gwdFolioScheme.DataSource = ds;
gwdFolioScheme.DataBind();
}
protected void btnSearch_Click(object sender, EventArgs e)
{
HiddenField Hddn_ClntID = (HiddenField)Report_Selection1.FindControl("Hddn_ClientID");
HiddenField hddnFXval = (HiddenField)Report_Selection1.FindControl("hddnFXval");
DropDownList ddl_Clnt = (DropDownList)Report_Selection1.FindControl("ddl_ClntList");
FillGridViewFolioScheme(ddl_Clnt.SelectedItem.Value.ToString());
}
protected void gwdFolioScheme_RowEditing(object sender, GridViewEditEventArgs e)
{ //when i set breakpoint this line event is not call why it is happen due to this reson i think on click edit button in gridview does not display textbox for editing
gwdFolioScheme.EditIndex = e.NewEditIndex;
DropDownList ddl_Clnt = (DropDownList)Report_Selection1.FindControl("ddl_ClntList");
FillGridViewFolioScheme(ddl_Clnt.SelectedItem.Value.ToString());
}
protected void gwdFolioScheme_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
gwdFolioScheme.EditIndex = -1;
DropDownList ddl_Clnt = (DropDownList)Report_Selection1.FindControl("ddl_ClntList");
FillGridViewFolioScheme(ddl_Clnt.SelectedItem.Value.ToString());
}
}
any other alternative mathod for edit gridview
plz help
Thanx
Suthish NairPosted Jul 29, 2011, 3:25 PM
refer msdn article