|
Article relates to
|
RadControls for WinForms Q2 2010 SP2
|
|
Created by
|
Nikolay Diyanov
|
|
Last modified
|
Oct 5, 2010
|
|
Last modified by
|
Nikolay Diyanov
|
HOW-TO
Create MultiColumnListBox based on RadGridView.
SOLUTION
In order to make RadGridView look like a (MultiColumn) ListBox, you just need to set a small number of properties. This will allow you to have a listbox-like view, but you will still be able to use all the features that RadGridView supports.
Let's have three columns - a checkbox column and two text columns. The properties that we should set are these:
Now in order to hide the border in RadGridView, simply subscribe for the CellFormatting event, and set the DrawFill property:
Optionally, we can set the ReadOnly property of the text columns, since the in general listbox controls are not editable:
The result is shown on the screenshot below:

Please
Sign In
to rate this article.