Hi,
please help... I want to change background of FIRST CELL in header of tableview. With next code I can change last added column; I can not find logic how to get FIRST CELL OF HEADER in tableview. Can somebody help me? Thx...
Code:
please help... I want to change background of FIRST CELL in header of tableview. With next code I can change last added column; I can not find logic how to get FIRST CELL OF HEADER in tableview. Can somebody help me? Thx...
Code:
Code:
Private Sub SetFilterStyle(Index As Int, Color As String)
Dim Style As String = " -fx-background-color: " & Color & ";"
If Color = "" Then Style = ""
Dim jo As JavaObject = tblView
Dim columnHeader As JavaObject = jo.RunMethodJO("lookup", Array(".column-header-background"))
Dim firstCell As JavaObject = columnHeader.RunMethodJO("getChildren", Null).RunMethod("get", Array(Index))
firstCell.RunMethod("setStyle", Array(Style))
End Sub