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

Reply To: Datasource Numeric Column

$
0
0

Hello,

It is not going to work because you have set the celltype for whole column as

FpSpread1.ActiveSheet.Columns(FpSpread1.ActiveSheet.Columns.Count – 1).CellType = mAmtDecimal

And then in code again you are setting value for a cell in that column to string:

FpSpread1.ActiveSheet.Cells(0, 1).Value = "VVM" 

You need to set the celltype for a range of cells for example in column 1 you may set the celltype for whole column except cell(0,1) like:

Fpspread1.ActiveSheet.Cells(0,1,FpSpread1.ActiveSheet.RowCount-1, 1).CellType= mAmtDecimal.

And for cell(0,1) set the celltype as Text/General.

FpSpread1.ActiveSheet.Cells(0, 1).CellType = New FarPoint.Win.Spread.CellType.GeneralCellType

Thanks,
Deepak Sharma


Viewing all articles
Browse latest Browse all 14170

Trending Articles



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