• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TableView - show Customised Combox Control in TableCell

 
Ally Cavs
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have a custom control called AutoCompleteComboBox which extends ComboBox. If I have a tableview how can i get this AutoCompleteComboBox to display in a cell when clicked?

Thanks
Alan
 
John Damien Smith
Ranch Hand
Posts: 271
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a ComboBoxTableCell.

"By default, the ComboBoxTableCell is rendered as a Label when not being edited, and as a ComboBox when in editing mode."

And if you need more control over customization of the cell (e.g. to choose your specific custom auto complete combobox instance), then, look at the ComboBoxTableCell source code to see how you may customize it to fit your requirements.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic