Posted 26 February 2020, 12:46 pm EST
Hello,
After loading the Grid using a table from an xml file, how do I reformat a column (xxxx-xx-xxx-xxxx) to remove the “-” and only display (xxxxxxxxxxxxx)?
Thanks,
Victor
Forums Home / ComponentOne / WinForms Edition
Posted by: Victor.m.charles.civ on 26 February 2020, 12:46 pm EST
Posted 26 February 2020, 12:46 pm EST
Hello,
After loading the Grid using a table from an xml file, how do I reformat a column (xxxx-xx-xxx-xxxx) to remove the “-” and only display (xxxxxxxxxxxxx)?
Thanks,
Victor
Posted 27 February 2020, 4:38 am EST
Hi Victor,
You can use the FormatText event as implemented in the attached sample to achieve your desired output.
I hope it helps.
Regards,
Prabhat Sharma.
TrueDBGridReformatColumnDemo.zip
Posted 2 March 2020, 11:43 am EST
It works.
Thank You.