BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
If e.ColIndex = _GridColumnNumber.PartTypeCode Then PartType = e.Style.CellValue Else PartType = _Grid(e.RowIndex, _GridColumnNumber.PartTypeCode).CellValue
If Not IsDBNull(e.Style.CellValue) Then e.Style.CellValueType = GetType(double) e.Style.Format = "0.####" End IfThe idea is not to change the CellValue, but to make sure the style.Format is set the way you want it. In order for the style.Format to take effect, style.CellValueType must be set properly as well.