DataGrid - Formatting Expression

Results 1 to 2 of 2

Thread: DataGrid - Formatting Expression

  1. #1
    Join Date
    Dec 1969

    Default DataGrid - Formatting Expression

    I am looking to replace a few characters in a column with a static character (such as "X"). For instance, if the column was displaying Social Security numbers, it would return 123XX6789. I am assuming this can be done in the Data Formatting Expression under the datagrid, but I can&#039;t figure out how.<BR><BR>Any help would be greatly appreciated.

  2. #2
    Join Date
    Dec 1969

    Default RE: DataGrid - Formatting Expression

    The data formatting expression will probably work, but I can&#039;t help you with that, so you could always consider string.Substring, string.IndexOf, string.Replace, string[index]. If it is something simple, like:<BR><BR>111-22-3333 and you only want to show last four digits:<BR><BR>for (int i=0; i &#060; ss.Length - 4; i++) ss[i] = &#039;X&#039;;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts