J
jack
Hi im trying to use DrowDownList in the Gridview control for the first
time and have just a little idea about how it works
i have tried some code from the net but was able to find the code of
DataGrid with DropDownList. But displays some error when i click on the
edit button
Im trying to use Dropdownlist in the gridview. but in the RowEditing
event The error is thrown here
protected void GridView1_RowEditing(object sender,
GridViewEditEventArgs e)
{
Response.Write("Value changed to ");
System.Web.UI.WebControls.Label lb = new
System.Web.UI.WebControls.Label();
DropDownList ddl = (DropDownList)
GridView1.SelectedRow.FindControl("ddl_UnitCode");
(Error is thrown here : Object reference not set to an instance of an
object.)
BindGrid();
}
the error occurs when i click on edit buttton..
time and have just a little idea about how it works
i have tried some code from the net but was able to find the code of
DataGrid with DropDownList. But displays some error when i click on the
edit button
Im trying to use Dropdownlist in the gridview. but in the RowEditing
event The error is thrown here
protected void GridView1_RowEditing(object sender,
GridViewEditEventArgs e)
{
Response.Write("Value changed to ");
System.Web.UI.WebControls.Label lb = new
System.Web.UI.WebControls.Label();
DropDownList ddl = (DropDownList)
GridView1.SelectedRow.FindControl("ddl_UnitCode");
(Error is thrown here : Object reference not set to an instance of an
object.)
BindGrid();
}
the error occurs when i click on edit buttton..