Hi
Ronaldo,
Thanks
for using Syncfusion Products.
Your
requirement to format string data type can be achieved using QueryCellInfo
event. In QueryCellInfo event we have did formatting by converting the
string to integer and again converted the result back to string and displayed
the formatted string in the grid. Could you please refer the below code snippet.
[Controller]
public void QueryCellInfo(GridTableCell<AutoFormatting> cell)
{
if (cell.TableCellType == GridTableCellType.RecordFieldCell || cell.TableCellType ==
GridTableCellType.AlternateRecordFieldCell)
{
if (cell.Column.MappingName == "Telephone")
{
cell.Text = Convert.ToInt64(cell.Data.Telephone).ToString("(###) ###-####");
}
}
}
For your convenience we have attached a sample. Could you use that
sample and get back to us if you have any queries.
Let
us know if you have any other concerns.
Regards,
Abdul
Matin M.
StringFormatting_c1bf9ff5.zip