How to select multiple templates details from gridview
protected void grvrisk_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.Equals("Delete"))
{
GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
string riskId = ((TextBox)row.FindControl("txtRiskClassID")).Text.ToString();
string occupationId = ((TextBox)row.FindControl("txtRiskClassID")).Text.ToString();
string occupationDetails = ((TextBox)row.FindControl("txtRiskClassID")).Text.ToString();
string classNo = ((TextBox)row.FindControl("txtRiskClassID")).Text.ToString();
string sumInsured = ((TextBox)row.FindControl("txtRiskClassID")).Text.ToString();
}
}
Comments
Post a Comment