We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Null values in GridDropDownMonthCalendarCellModel

Can the user put Null values in GridDropDownMonthCalendarCellModel?, it seems to be posible, it can be done by code, I read the samples and help, but I can't find how to do this.

3 Replies

AD Administrator Syncfusion Team March 26, 2003 04:32 PM

For a GridDataBoundGrid in version 1.5.2.2, if your user deletes an entry in a DateTime column (removes all the characters), the grid will store DBNull back into the DataSource. This version is a private patch, and the change will be in the upcoming 1.6 release.


AG Alberto Gil Diez March 27, 2003 12:08 AM

Sorry, but changes are allowed in this sample, logically, the columns that are in the relations should not be changed, but this problem can be solved by hiding this columns in the child grid. Now if we change another column and move from one row to another row, the grid contains the new data, but if there is only one row, is not posible change the row and there is no way to do effective this change. The solution to this problem is to capture the child grid hiding event, and I try with Deactivated, Leave and VisibleChanged, but these events are not fired when the child grid hides. Now I've solved this problem by commiting the changes in the child grid before show the child grid from another parent grid row, and before saving changes to the database, but I want to do a Control that automates this, and I'm looking for a more elegant solution of this problem. In this way I have another problem: in the parent grid you can add rows, but is not posible delete rows because there is not a row header column, so I've added to the parent grid a RowHeader column: gbc = New GridBoundColumn() gbc.MappingName = "" gbc.HeaderText = "" gbc.StyleInfo.CellType = "RowHeader" Me.GridBoundColumns.Add(gbc) but this column not show as a rowheader, and not allow select rows and so not allows deleteing rows.


AG Alberto Gil Diez March 27, 2003 12:13 AM

I ask pardon but I have made a mistake myself and was not this the message where wanted to rply it, again, I ask excuses.

Loader.
Live Chat Icon For mobile
Up arrow icon