You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



  • "Dani" started this thread

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message


Friday, September 16th 2011, 2:36pm

JBGrid - formatting

Hey everybody,
there are a couple issues about the JBGrid that either I can not get to work or simply don't work.
I don't know!?
Anyway the following does not work:

Jabaco Source

' JBGrid
Public Sub Form_Load()
   grdTest.TextMatrix(0, 0) = "Test"
   grdTest.DataMatrix(0, 0).FontBold = True 
End Sub

also in the JBGrid it is possible to set every cell to a different FontColor, alignment and so on ...
But when a cell is selected the FontColor and other formatting turns to default values.

You can make use of the JLable's ability to display html formatted text to work around these limitations:

Jabaco Source

grdTest.DataMatrix(0,0).Parent.setText("<html><b>" & grdTest.TextMatrix(0,0) & "</b></html>")

Code needs to be present in the MouseDown() Sub as well !!

Have fun,


Rate this thread
WoltLab Burning Board