Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Date and WinGrid
posted

Hi,

I would like to prevent user from editing the date cell in my wingrid. It does not have an effect on the database, but it is problematic. There is a combobutton on the right of the cell and it allows user to change it ..by displaying a calendar. How to remove this ?

Thanks !

Parents
  • 45049
    Suggested Answer
    posted

    If you know that you want all cells in the column to be un-editable, you can set the CellActivation property of the column object to ActivateOnly, NoEdit, or Disabled.  If you want to set this cell-by-cell instead, use the Activation property of the cell object.

    Which of these you choose depends on how much functionality you want to leave.  See the API documentation on the Activation enumeration for more details on these values; the link leads to the article on this enumeration in our online help documentation of NetAdvantage for .NET 2009 Volume 1.

Reply Children