In the asp.net FormView, I can use code like this to update a record as it is being stored to the database during an insert:
protected void fvCustomers_ItemInserting(object sender, FormViewInsertEventArgs e)
{
string strCity = ((DropDownList)((FormView)sender).FindControl("ddlCity")).SelectedValue;
e.Values["City"] = strCity;
}
How do I accomplish the same when inserting a record using RadGrid? I know how to locate the value in the dropdown but I can't figure out which event to choose and how to get access to the values as I can do in the FormView's ItemInserting event.
Thanks,
Paul
protected void fvCustomers_ItemInserting(object sender, FormViewInsertEventArgs e)
{
string strCity = ((DropDownList)((FormView)sender).FindControl("ddlCity")).SelectedValue;
e.Values["City"] = strCity;
}
How do I accomplish the same when inserting a record using RadGrid? I know how to locate the value in the dropdown but I can't figure out which event to choose and how to get access to the values as I can do in the FormView's ItemInserting event.
Thanks,
Paul