Click here to Skip to main content
12,395,143 members (65,134 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
This is my gridview

<asp:GridView ID="gvAvailabledoctors" runat="server" AutoGenerateColumns="False"
                              AllowPaging="true" PageSize="10" CellPadding="4" CellSpacing="1"
                                Font-Names="Verdana" Width="570px"
                                Font-Size="9pt" ForeColor="#333333" BorderStyle="Solid"
                                BorderColor="White" GridLines="none"
                                <RowStyle BackColor="#F7F6F3" ForeColor="black" CssClass="gridrowstyle" />
                                <asp:TemplateField HeaderText="">
                                    <input name="RadioButtondoc" type="radio"  value='<%# Eval("DoctorID") %>' />
                                    <ItemStyle Width="50px" CssClass="gridcol" Wrap="false"/>
                                    <HeaderStyle  HorizontalAlign="Center" />
                                   <asp:BoundField  DataField="Name" HeaderText="Doctor Name">
                                        <HeaderStyle Width="150px" HorizontalAlign="Center" />
                                        <ItemStyle Width="150px" CssClass="gridcol" Wrap="false"/>
                                    <asp:BoundField DataField="Specialist" HeaderText="Specialized IN">
                                        <HeaderStyle Width="220px" HorizontalAlign="Center" />
                                         <ItemStyle Width="220px" CssClass="gridcol" Wrap="false"/>
                                     <asp:BoundField DataField="City" HeaderText="Location">
                                        <HeaderStyle Width="300px" HorizontalAlign="Center" />
                                        <ItemStyle Width="150px" CssClass="gridcol" Wrap="true"/>
                                <FooterStyle BackColor="#D4A97F" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#D4A97F" ForeColor="Black" HorizontalAlign="Center" Wrap="False" Font-Bold="True" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#d4a97f" Font-Bold="True" ForeColor="black" Height="20" Wrap="False" Width="75" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="#E2DED6" ForeColor="black" />

When i select a radio button in a row the doctor id should be checked whether he is available in clinic. i have return that functionality in
. but when i select the radiobutton row command is not called. how can i do this
Posted 27-Mar-13 20:46pm
Updated 27-Mar-13 22:24pm
supriya chaladi 28-Mar-13 7:50am
check whether data is binding to gridview in pageload

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please For Eg Write .What to do.?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100