|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How can I use my Own control in DataGrid?Hi,
I am trying to use my own calender control into datagrid but on clicking on it, i can not open that control. I am having date by choosing it from that control into input textbox. You can add your control inside a TemplateColumn:
<Columns> <asp:TemplateColumn> <ItemTemplate> <uc1:MyControl ... </ItemTemplate> <EditItemTemplate></EditItemTemplate> </asp:TemplateColumn> </Columns> </asp:DataGrid> Cheers, Steve Goodyear Thanx Steve :)
I've tried to use my calendar control by putting it in User Control and use it as u've told me but still it doesn't open on clicking on icon. <asp:TemplateColumn HeaderText="Date"> <ItemTemplate> <asp:Label id=lbldate runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Date") %>'> </asp:Label> </ItemTemplate> <FooterTemplate> <uc1:Calendar id="Calendar1" runat="server"></uc1:Calendar> </FooterTemplate> <EditItemTemplate> <INPUT id="txtDate" Runat="server"> </EditItemTemplate> </asp:TemplateColumn> i want it in footer thanx for ur cooperation Show quoteHide quote "Steve Goodyear" wrote: > You can add your control inside a TemplateColumn: > <Columns> > <asp:TemplateColumn> > <ItemTemplate> > > <uc1:MyControl ... > > </ItemTemplate> > <EditItemTemplate></EditItemTemplate> > </asp:TemplateColumn> > </Columns> > </asp:DataGrid> > > Cheers, > Steve Goodyear
How to react to an ImageButon in a DataList ?
Can we have more than 1 'control to validate' for a single validat search criteria Detailsview empty dataset insert Datalist Dynamic Template Loading Problem TableCell Text Wrapping Problem! About Page How to use Tab controls bind a Checkboxlist with a string ? FAQ software |
|||||||||||||||||||||||