Hi Ysut,
Sorry for a delayed response. I would put a RadioButtonList in an
ItemTemplate and bind the choice as follows, assuming that the Sex column
name is Sex.
<asp:TemplateField HeaderText="Sex">
<ItemTemplate>
<asp:RadioButtonList ID="rbtnltSex" SelectedValue='<%# Bind("Sex")
%>' runat="server">
<asp:ListItem Text="Male" Value="M" />
<asp:ListItem Text="Female" Value="F" />
</asp:RadioButtonList>
</ItemTemplate>
</asp:TemplateField>
HTH,
Ryan
On 1/23/06, ysut.rm <[EMAIL PROTECTED]> wrote:
>
> Hi Everyone. I am a new member and newbie for VS (ASP.NET<http://asp.net/>
> )
>
> I need the solution from all of you for my beginner question. I have a
> table employee_master, and one of the column is SEX which store M for
> Male and F for Female. I am using GridView to list the data(s) from
> the table and how to if I want to show the SEX column in Radio Button
> style. ( ) Male ( ) Female.
>
> Please help me to and thanks in advance
>
> Regards
> YSUT
>
>
>
>
>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "AspNet2 <http://groups.yahoo.com/group/AspNet2>"
> on the web.
>
> - To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
--
Thank you,
Ryan Olshan
Website - http://www.StrongTypes.com
Group - http://groups.yahoo.com/group/StrongTypes
Blog - http://blogs.dirteam.com/blogs/ryan/
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNet2/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/