Can I change gridline widths on TWebstringgrid

I am displaying over 60 options as checkboxes in the grid. There are just two columns - name, and checkbox. It makes it too long and narrow.

I could make two columns of the options. So, 4 gridcolumns - name, chkbox, name, chkbox. This would only work, if I could thicken the central grid line that separates the two.

I found CheckBoxState to set/get the checkboxes state. That works.

I am having trouble rendering it. I used the tag table with class table (for bootstrap). I get not borders at all.

25.03.2025_10.47.04_REC


If I set the element to span as per the manual, its a bit better. I have set ElementTableClassName to "table table-striped table-bordered"

Try using grid.OnGetCellClass that allows you to specify a different CSS class per cell.
For just the cells between the 2 columns, you could set a CSS class for a thick left (or right) border.

Thanks,

Any clues about why I don't see any borders. The demo works fine, I have just copied things over. The only difference is that I have bootstrap linked.

I can tweak the css to make it work, but I was not expecting it to have no internal borders.

I guess my issues are -

  • Do I use element set to span ?
  • Should it work with Bootstrap ? If so, what classes should I use.

I can only think there is some conflicting Bootstrap class.
I'm not sure what you mean with "do I use element set to span" in this context?
I have not tried out all Bootstrap classes in such scenario myself. I will need to check first myself.

The Help on the grid says to link the ElementId property to a span tag in the html file. I wanted to confirm if that is correct.

Yes, the container element is a SPAN

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.