Am I using the .Split() function wrong? I have a DataGrid widget that returns the selected row. I am trying to parse the selected row string so I can access the values to display.
Here is a screenshot of how I am using it:
I am currently just sending the data to ErrorMessage.Text to view the output before I start setting it to my actual text boxes. The SelectedSKURow is my custom property string that my DataGrid SelectedRow is binded to.
The SelectedRow returns "ID|Name|Qty1|Qty2" which is why I am trying to split by the "|" character. I originally had stringSplit = SelectedSKURow.Split("|") but that also wasn't splitting anything. It just sets the whole selected row string as stringSplit[1].