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
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.
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.
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.
Cell has the data in the format : 6786-342-4536. I cannot figure out , how to edit last -4536 and 6786-342 should be disabled .
Based on some conditions need to edit forst 4 digits or next 3 digits or next 4536 . Keping the other two no editable.
Thanks.