ADAdministrator Syncfusion Team March 26, 2003 09:32 PM UTC
For a GridDataBoundGrid in version 22.214.171.124, 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.
AGAlberto Gil DiezMarch 27, 2003 05:08 AM UTC
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"
but this column not show as a rowheader, and not allow select rows and so not allows deleteing rows.
AGAlberto Gil DiezMarch 27, 2003 05:13 AM UTC
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.