grouping in an ASP.Net GridView
http://www.c-sharpcorner.com/uploadfile/e06010/grouping-in-asp-net-gridview/
<asp:RadioButtonList ID="rdoPlanExist" CssClass="plan-chooser" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="0" Selected="True">New Plan</asp:ListItem>
<asp:ListItem Value="1">Existing Plan </asp:ListItem>
</asp:RadioButtonList>
proposal.IsExisting = rdoPlanExist.SelectedItem.Value == "0" ? false : true;
if (proposal.IsExisting.Value)
{
proposal.PlanAsset = txtAssets.Text == "" ? 0 : decimal.Parse(txtAssets.Text);
proposal.NumberOfParticipant = txtParticipants.Text == "" ? 0 : int.Parse(txtParticipants.Text);
proposal.Recordkeeper = txtRecordkeeper.Text;
proposal.PlanType = int.Parse(ddlPlanType.SelectedValue);
}
http://www.c-sharpcorner.com/uploadfile/e06010/grouping-in-asp-net-gridview/
<asp:RadioButtonList ID="rdoPlanExist" CssClass="plan-chooser" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="0" Selected="True">New Plan</asp:ListItem>
<asp:ListItem Value="1">Existing Plan </asp:ListItem>
</asp:RadioButtonList>
proposal.IsExisting = rdoPlanExist.SelectedItem.Value == "0" ? false : true;
if (proposal.IsExisting.Value)
{
proposal.PlanAsset = txtAssets.Text == "" ? 0 : decimal.Parse(txtAssets.Text);
proposal.NumberOfParticipant = txtParticipants.Text == "" ? 0 : int.Parse(txtParticipants.Text);
proposal.Recordkeeper = txtRecordkeeper.Text;
proposal.PlanType = int.Parse(ddlPlanType.SelectedValue);
}