-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Varad
Message 2 in Discussion

Hi, You can very well add radio buttons in a DataGrid control. DataGrid allows you to 
put any controls inside a template column. You must be thinking that on the same line 
one can add RadioButtons web control as well.    You can try the following..   <%@ 
Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" 
Inherits="RadioButtonInDataGrid.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <title>WebForm1</title>
  <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
  <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5";>
 </HEAD>
 <body MS_POSITIONING="GridLayout">
  <form id="Form1" method="post" runat="server">
   <asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; 
TOP: 8px" runat="server" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
BackColor="White" CellPadding="4" AutoGenerateColumns="False" Width="144px" 
Height="22px">
    <SelectedItemStyle Font-Bold="True" ForeColor="#663399" 
BackColor="#FFCC66"></SelectedItemStyle>
    <ItemStyle ForeColor="#330099" BackColor="White"></ItemStyle>
    <HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" 
BackColor="#990000"></HeaderStyle>
    <FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
    <Columns>
     <asp:TemplateColumn HeaderText="Select">
      <ItemTemplate>
       <asp:Label id="Label2" runat="server"></asp:Label>
      </ItemTemplate>
     </asp:TemplateColumn>
     <asp:BoundColumn DataField="lastname" HeaderText="Last Name"></asp:BoundColumn>
    </Columns>
    <PagerStyle HorizontalAlign="Center" ForeColor="#330099" 
BackColor="#FFFFCC"></PagerStyle>
   </asp:DataGrid>
   <asp:Label id="Label3" style="Z-INDEX: 103; LEFT: 222px; POSITION: absolute; TOP: 
35px" runat="server" Width="184px"></asp:Label>
   <asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 218px; POSITION: absolute; TOP: 
70px" runat="server" Text="Display Selected Value"></asp:Button>
  </form>
 </body>
</HTML>
 You can open a window using the window.Open method which pops up the window.     Hope 
this helps..   Varad.      

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to