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.
Unfortunately, activation email could not send to your email. Please try again.

Null values in GridDropDownMonthCalendarCellModel

Thread ID:

Created:

Updated:

Platform:

Replies:

3507 Mar 26,2003 07:02 AM Mar 27,2003 12:13 AM Windows Forms 3
loading
Tags: GridControl
alberto
Asked On March 26, 2003 07:02 AM

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.

Administrator [Syncfusion]
Replied On 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.

Alberto Gil Diez
Replied On 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.

Alberto Gil Diez
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;