AD
Administrator
Syncfusion Team
June 28, 2004 11:22 AM UTC
1.) To set your own message, handle the grid.ValidateFailed event. In your handler, set this.grid.CurrentCell.ErrorMessage = "MyMessage";
To force a string to be upper case, insert a greater than symbol (>) in the mask. So, if the mask is ">CCCC", you would get 4 uppercase letters.
2.) You could try handling CurretnCellConfirmChnages. At that point, you can call grid.CurrentCell.EndEdit and grid.Binder.EndEdit. Then you would have to visit each one of the cells you want to set using an something like this.grid[row, col].CellValue = ????. Then before changing the next one, you would want to call grid.Binder.EndEdit to make sure the change gets saved.
3) In your ColWidthsChanging handler, you should only be setting e.Size (and not explicitly setting grid.ColWidths[someCol] = something).
If you do this, this normally you do not have to handle any other events provided you set this.grid.SmoothControlResize = false. Setting this property will make the grid redraw itself entirely when a sizing is done. This generally avoids teh redraw problems you described.
AD
Administrator
Syncfusion Team
June 28, 2004 11:45 AM UTC
Clay
Thanks for the comments. Questions 1 and 2 now on the way to being solved.
I have set SmoothResize to False and an not setting Colwidths.Size only e.size in the QueryColWidths handler and the grid still messes up when dragging columns only. Not on a re-size of the grid itself. Do you want an example or screenshots?
AD
Administrator
Syncfusion Team
June 28, 2004 11:51 AM UTC
If you have a sample project, we can try to spot the problem here.