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

New Message on BDOTNET

-----------------------------------------------------------
From: dinesh_gr
Message 2 in Discussion

Hi Ravi,   Check the code for displaying a combo box inside a grid. The combo box is 
binded . Here in the Item Template, the combo box is specified.....   <asp:DataGrid 
ID="grdDetailEdit" Runat="server" AutoGenerateColumns="False" 
DataKeyField="VOUCHERDT_ID">
        <HeaderStyle BackColor="#ff99ff" ForeColor="#660000"></HeaderStyle>
        <Columns>
         <asp:TemplateColumn HeaderText="Account">
          <ItemTemplate>
           <asp:DropDownList ID="cboAcc_ID" Runat="server" 
Enabled="False"></asp:DropDownList>
          </ItemTemplate>
         </asp:TemplateColumn>
         <asp:TemplateColumn HeaderText="Credit/Debit">
          <ItemTemplate>
           <asp:TextBox ID="txtCRDR_AMT" Runat="server" CssClass="text"></asp:TextBox>
           <asp:RequiredFieldValidator ID="rfvCRDR" Runat="server" 
ControlToValidate="txtCRDR_AMT" display="Dynamic" ErrorMessage="Enter Numeric Value" 
InitialValue="0" />
          </ItemTemplate>
         </asp:TemplateColumn>
         <asp:TemplateColumn HeaderText="Type">
          <ItemTemplate>
           <asp:DropDownList ID="CRDR_TYPE" Runat="server" Enabled="False">
            <asp:ListItem Value="Cr">CR</asp:ListItem>
            <asp:ListItem Value="Dr">DR</asp:ListItem>
           </asp:DropDownList>
          </ItemTemplate>
         </asp:TemplateColumn>
         <asp:BoundColumn DataField="VOUCHERDT_CRAMT" 
Visible="false"></asp:BoundColumn>
         <asp:BoundColumn DataField="VOUCHERDT_DRAMT" 
Visible="false"></asp:BoundColumn>
         <asp:BoundColumn DataField="ACC_ID" Visible="false"></asp:BoundColumn>
        </Columns>
       </asp:DataGrid>   Check out the link for more details.. 
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q  for Win Forms.   -Regards, 
Dinesh.

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

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