Dineshcool
Dineshcool

Reputation: 39

Is it possible to add calendar control in boundfield inside grdview?

I have a problem in updating date using gridview. I want to add ajax control toolkit calendar control inside the gridview boundfield.

My sample gridview will look like this. these gridview details are from table.so, my Date column in BOUNDFIELD

enter image description here

when I update date, I need ajax calendar control should pop up to select date.

how to achieve this?

Upvotes: 1

Views: 1042

Answers (1)

Aijaz Chauhan
Aijaz Chauhan

Reputation: 1649

You need to use Item Templates......

Example :

<asp:TemplateField HeaderText="Is Active">
 <ItemTemplate>
    <asp:Label ID="lblIsActive" runat="server" Text='<%# Eval("YourValue").ToString() %>'></asp:Label>
 </ItemTemplate>
 <EditItemTemplate>

     // Add your item here (Like Textbox With Caleder control)

 </EditItemTemplate>

</asp:TemplateField>

Upvotes: 1

Related Questions