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.

jbExplorer

Trainee

  • "jbExplorer" started this thread

Posts: 111

Date of registration: Mar 18th 2013

  • Send private message

1

Monday, February 24th 2014, 8:48pm

How to set column widths in JbGrid?

Hi, I'm using ColWidth( nColumnNumber ) = nColumnWidth


, but ColWidth() doesn't seem to be working. There's no difference.


I searched the forum for 'jbgrid column width', but it returns no results.

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

2

Tuesday, February 25th 2014, 8:23am

Hey there,

from the top of my head you have to populate the JBGrid first and set the .ColWidth Property after that!


Dani

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

3

Tuesday, February 25th 2014, 8:46am

have a look at my little JBGrid sample app here:

JBGrid / Spinner - Update - with SpinnerModels


you will find the attached .zip in the last sentence of the first post...


Dani

--------------------------
OK, I linked it in here.

@ webmaster: links should be highlighted somehow; there are two links in this post!!

This post has been edited 1 times, last edit by "Dani" (Feb 25th 2014, 8:51am)


jbExplorer

Trainee

  • "jbExplorer" started this thread

Posts: 111

Date of registration: Mar 18th 2013

  • Send private message

4

Tuesday, February 25th 2014, 3:18pm

Yep, like you said, the widths have to be set after the grid is populated.

That works, thanks Dani.

Rate this thread
WoltLab Burning Board