Try taking off the
ToString
call, and use the
Value
property instead of the
FormattedValue
:
Format("00000-00000-00000-00000", ItemsDataGridView.Rows(e.RowIndex).Cells(1).Value)
You could also use the
String.Format
method from the BCL, instead of the VB-specific
Format
function:
String.Format("{0:00000-00000-00000-00000}", ItemsDataGridView.Rows(e.RowIndex).Cells(1).Value)