G
Guest
This is for a Win form.
In a datagrid, I want to be able to extract a cell, and parse out the data
in the cell. The cell has a telephone number, and I'm able to get the full
telephone number.
Here is the code I have so far.
int rowNum = dgSportsman.CurrentCell.RowNumber;
object Cell8 = dgSportsman[rowNum, 7];
Cell8 returns the full telephone number. I want Cell8 to have the first 3
numbers, Cell9 to have the next 3 and Cell10 to have the last 4 numbers.
In a datagrid, I want to be able to extract a cell, and parse out the data
in the cell. The cell has a telephone number, and I'm able to get the full
telephone number.
Here is the code I have so far.
int rowNum = dgSportsman.CurrentCell.RowNumber;
object Cell8 = dgSportsman[rowNum, 7];
Cell8 returns the full telephone number. I want Cell8 to have the first 3
numbers, Cell9 to have the next 3 and Cell10 to have the last 4 numbers.