Quantcast
Viewing all articles
Browse latest Browse all 3819

CheckBox in Cell of DesktopListBox is editable

A checkbox created in a cell of DesktopListbox can be changed. The following example program illustrates the problem:

ListBox1.AddRow
ListBox1.CellTextAt(0,0) = "Column 0"

ListBox1.CellTypeAt(0,1) = DesktopListbox.CellTypes.Checkbox
ListBox1.CellCheckBoxStateAt(0,1) = DesktopCheckBox.VisualStates.Checked

This piece of code is in the Pressed event of a DesktopButton. The text in cell (0,0) is not editable. The state of the CheckBox (cell (0,1) can be changed. How to avoid this?

17 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 3819

Trending Articles