You must Sign In to post a response.
  • Category: Visual Studio

    How to set calender column date as empty ?


    Are you looking for a way to set calender column date as empty ? then read this thread to know how to set it



    Dear All,

    i have data gridview in VB.Net with my application, and have 8 columns.
    4 columns are "TextBox" Column.
    4 columns are 'Calendar" Column.

    Now i want that Calender Column (Date) Should be empty while form load.
    User can able to choose date.
    is it possible ?

    Regards,
    Ramkumar G.R
  • #757376
    There is no direct property to set datetime value as NULL or empty, but you can overridden the Value property to accept Null value as DateTime.MinValue.
    go through the following link it will help you to accomplish your task
    http://www.codeproject.com/Articles/5428/Nullable-DateTimePicker

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #766580
    Hi,
    Kindly go through the below mentioned links. It May resolve your requirements.

    1.http://www.codeproject.com/Articles/38972/Nullable-datetime-column-in-NET-DataGrid-with-Date

    2.http://www.vbforums.com/showthread.php?470219-2005-Accept-Null-Date-entry-in-DataGridView-DateTime-Column

  • #766582
    You can make your you calendar to accept the empty/null values

    You can override the Value property to accept Null value as DateTime.MinValue, Actually we have to maintain the validation of MinValue and MaxValue of standard control.

    By Nathan
    Direction is important than speed


  • Sign In to post your comments