Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Setting values using strings that contain dollar sign character

$
0
0

When filling a flex grid with the provided sample code prior to grid version 4.6.20141.817 string values containing dollar signs would be accepted as cell values. Within this version only columns with Object or String types will accept these string values.

Default FlexGrid from vs 2010 .net 4.0 framework. Cell named based on selected data type.

 Dim nRow As Integer = 1
      C1FlexGrid1.Rows(nRow)("object") = 1000.0
      C1FlexGrid1.Rows(nRow)("string") = 1000.0
      C1FlexGrid1.Rows(nRow)("double") = 1000.0
      C1FlexGrid1.Rows(nRow)("decimal") = 1000.0
      C1FlexGrid1.Rows(nRow)("long") = 1000.0
      C1FlexGrid1.Rows(nRow)("integer") = 1000.0

      nRow = 2
      C1FlexGrid1.Rows(nRow)("object") = "1000.00″
      C1FlexGrid1.Rows(nRow)("string") = "1000.00″
      C1FlexGrid1.Rows(nRow)("double") = "1000.00″
      C1FlexGrid1.Rows(nRow)("decimal") = "1000.00″
      C1FlexGrid1.Rows(nRow)("long") = "1000.00″
      C1FlexGrid1.Rows(nRow)("integer") = "1000.00″

      nRow = 3
      C1FlexGrid1.Rows(nRow)("object") = "$1000.00″
      C1FlexGrid1.Rows(nRow)("string") = "$1000.00″
      C1FlexGrid1.Rows(nRow)("double") = "$1000.00″ ' Does not show numbers
      C1FlexGrid1.Rows(nRow)("decimal") = "$1000.00″ ' Does not show numbers
      C1FlexGrid1.Rows(nRow)("long") = "$1000.00″ ' Does not show numbers
      C1FlexGrid1.Rows(nRow)("integer") = "$1000.00″ ' Does not show numbers

Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>