K
Krish
Hello Gurus,
I have GridView control on web page which has couple of radio button
controls as one group. On editing a particular row in grid, i have to
validate based on user selection on radio button i have to validate another
column data in the grid. Pl. help me with code snippets. Thank you.
<asp:TemplateField HeaderText="Code Translate">
<ItemTemplate>
<asp:RadioButton GroupName="rdTrans" id="rdTranslateP" runat="server"
Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Permanant" Enabled="False"/>
<asp:RadioButton GroupName="rdTrans" id="rdTranslateT" runat="server"
Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Temporary" Enabled="False"/>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButton GroupName="rdTransE" id="rdTranslatePE" runat="server"
Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Permanant"/>
<asp:RadioButton GroupName="rdTransE" id="rdTranslateTE" runat="server"
Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Temporary"/>
</EditItemTemplate>
I have GridView control on web page which has couple of radio button
controls as one group. On editing a particular row in grid, i have to
validate based on user selection on radio button i have to validate another
column data in the grid. Pl. help me with code snippets. Thank you.
<asp:TemplateField HeaderText="Code Translate">
<ItemTemplate>
<asp:RadioButton GroupName="rdTrans" id="rdTranslateP" runat="server"
Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Permanant" Enabled="False"/>
<asp:RadioButton GroupName="rdTrans" id="rdTranslateT" runat="server"
Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Temporary" Enabled="False"/>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButton GroupName="rdTransE" id="rdTranslatePE" runat="server"
Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Permanant"/>
<asp:RadioButton GroupName="rdTransE" id="rdTranslateTE" runat="server"
Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataItem,
"in_translate")) %>' ToolTip="Temporary"/>
</EditItemTemplate>