Hi Stefano
I am trying to put a tick in a column with this code but it appears not to work could you check it for me please as I am probably missing something.
private Sub LoadGrid
CLGrid.Initialize("CLGrid")
CLGrid.RowHeight = 15%y
CLGrid.HeaderHeight = 7%y
CLGrid.HeaderTextSize = 16
CLGrid.HeaderTextColor = Colors.White
CLGrid.HeaderTypeface = Typeface.DEFAULT_BOLD
CLGrid.HeaderColor = Colors.Black
Dim cc(3) As xnGridCol
cc(0).Initialize2 ("Test", "TEST", 15%x, Gravity.LEFT):CLGrid.ColAppend ( cc(0))
cc(1).Initialize2 ("Test1", "TEST1", 15%x, Gravity.LEFT):CLGrid.ColAppend ( cc(1))
cc(2).Initialize2 ("Test2", "TEST2", 15%x, Gravity.LEFT):CLGrid.ColAppend ( cc(2))
cc(0).RowIconTop = 2%y
cc(0).RowIconLeft = 2%x
cc(0).setTypeCheck
cc(1).RowIconTop = 2%y
cc(1).RowIconLeft = 2%x
cc(1).setTypeCheck
Activity.AddView (CLGrid, 0%x, 0%y, 45%x, 40%y)
CLGrid.RowAppend( Array As String("","1", ""))
CLGrid.RowAppend( Array As String("1","", "1"))
CLGrid.Visible = True
CLGrid.GridWidth = 1
CLGrid.PixelFix = False
CLGrid.GridCreate2(False)
End Sub
private Sub CLGrid_CellClick ( Col As Int , Row As Int )
Dim result As Int
result = Msgbox2("Please select Yes for a Tick", "", "Yes", "", "No", Null )
If result = DialogResponse.POSITIVE Then
CLGrid.SetValue(Row ,Col , "1")
Else
CLGrid.SetValue(Row ,Col, "0")
End If
End Sub