Hi ,
I am working on Ultrawingrid and I have data in a cell that is in the format 4535-654-6754.
So based on some conditions I want to disable 4535-654- and able to edit 6754 part.
How do I part of cell data.
Thanks
Hi,
There is no built-in functionality to allow you to disable editing for only part of the value in a cell. Only the entire cell can allow or disallow editing.
One thing you could do is separate the parts of the value. For example, you could have one cell that contain the first part (####-###) and a second cell that contains the last 4 digits. Then you could enable editing on each part independently.
Another option would be to write your own custom control, like a UserControl that handles this. Then you could use that UserControl inside the grid with the UltraControlContainerEditor.
Thanks for the reply.
If I split this into 3 columns and have the single header for all three cells, that's a good idea . Can I remove the line between the cells , so that ,it look like the whole vale appears to be in the same cell rather than being in 3 separate cells.
There's no easy way to remove the lines between some columns. You can use the BorderStyleCell and BorderStyleRow properties on the Override object to turn off borders for everything. But you really can't use this for turn off borders selectively, because a cell doesn't draw all 4 sides of it's own border. Most cells draw one or two sides and they rely on the adjacent cells to draw the others.
The only way to achieve something like this would be to use a DrawFilter, and even then, it's not trivial.