Jump to content


Photo

checkbox column


  • Please log in to reply
1 reply to this topic

#1 af99

af99
  • Members
  • 5 posts

Posted 17 February 2016 - 01:20 PM

Hello,

 

i've used the nextdbgrid component. i define a checkbox column. the db field type (ms sql server) is integer. but no checkboxes are shown. what must i do to make them visible?

 

the second question ist. i need 4 checkbox columns . and when i checked one of them the other 3 checkbox columns are not able to check. even like a radiobutongroup. is this posible?

 

Thanks

Andreas



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 17 February 2016 - 11:42 PM

Hi Andreas,

 

Most important properties for you will be ValueChecked and ValueUnchecked.

 

There you need to set value of field. Sometimes, on German language systems is not true and false so this is first thing to check.

 

After you check one checkbox, you will need to go with something like: Columns[n + 1].Field.AsString := 'nein'; // or similar.

 

Ps. I am thinking about radio button column type in v6.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users