TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Riddhi Valecha
441
3.3k
415.5k
GridView - RadioButtonList
Oct 13 2016 5:19 AM
Hi all..
I have a gridview -
<asp:GridView ID="grdGetAsset" runat="server" AutoGenerateColumns="false" Width="100%"
OnRowDataBound="grdGetAsset_RowDataBound">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Dept" HeaderText="Department" />
<asp:BoundField DataField="TotalYearsInCompany" HeaderText="Duration" />
<asp:BoundField DataField="Brand" HeaderText="Brand" />
<asp:TemplateField HeaderText="Certified Status" HeaderStyle-Width="200px">
<ItemTemplate>
<asp:RadioButtonList ID="radiobtnlist" runat="server" RepeatDirection="Horizontal"
CssClass="radiobuttonlist">
<asp:ListItem Text="I Own" Value="OWN"></asp:ListItem>
<asp:ListItem Text="I Do Not Own" Value="DONOTOWN"></asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle Width="60px" Height="50px" />
<RowStyle Width="200px" />
</asp:GridView>
-------------
Issue - On button click event - I need to check whether how many rows RadioButtonList is checked..
If none is checked, then an alert message should come - "No Rows Selected"
Please guide..
Reply
Answers (
7
)
switch one website to another website different domain
Download & zip multiple varbinary files from database