calender in datagridview cloumn

 

i want to display calender in each cell click for one column in dataGridView.

                                                                                     --Thanks




Answer this question

calender in datagridview cloumn

  • msindel

    clicking the Edit should open a calendar in the cells of the datagrid..am i correct

    So that particular column should be of TemplateColumn type, where the editItemTemplate column should have a calendar control. This would make the click of the Edit Button to have a calendar.

    a small code snippet is as follows: here the column would have a label, when editing it would change to a textbox.

    <asp:TemplateColumn HeaderText="Resource % of <br> Request Hours">
    <ItemTemplate>
    <asp:Labe ID="Set_Resource" Text="Test"
    runat="server" Width="100px"> </asp:TextBox>
    </ItemTemplate>
    <EditItemTemplate>
    <asp:TextBox id=Set_Resource
    runat="server" Width="100px"><asp:TextBox>
    </EditItemTemplate>
    </asp:TemplateColumn>

    Or if you want the click of the cell to have a calendar, then try using RowEdit or similar function


  • Alex Me

    use Template Column...and in EditTemplateColumn..have a Calendar control
  • mtstarr

    i am not getting

  • calender in datagridview cloumn