This is a migrated thread and some comments may be shown as answers.

Listview for VB.NET

9 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohan
Top achievements
Rank 1
Mohan asked on 28 Jan 2011, 04:20 AM
hi

Do you have list view for vb.net winforms?

Thanks
Raj

9 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 28 Jan 2011, 10:22 AM
Hello,

There are several controls that you can use to display lists apart from the RadGridView.
The RadListControl
The RadDropDownList and
The MultiColumnComboBox

If you need further information on any of these, please just let me know
Thanks
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 01 Feb 2011, 02:26 PM
Hello,

Did this help? If so please remember to mark as answer.
If you need more help, just let me know
Richard
0
S
Top achievements
Rank 1
answered on 11 Feb 2011, 03:25 PM
Hi fellows,
I'm touching this thread, because I also have looked for a ListView control in the Telerik RadControls for WinForms toolbox... In vain unfortunately.

@Richard,
nether of the listed controls satisfies my needs:
- I cannot use the multicolumn combobox, because it cannot display as a normal list control.
- I cannot use the dropdown list, because of the same reason as in the case above.
- I cannot use the list control as it does not display more than one column.

I need control like the standard WinForms listview one, but with the visual features of the RadControls.
I found myself using the gridview control for simple listing purposes which is big resource and performance overhead and still not displaying the
needed information 100% correctly.

If the moderators here have ideas or event code pieces how to transform the list control i a listview one, then I'll be very thankful...
Many thanks in advance.

Kind regards,
Seilhardt.
0
Richard Slade
Top achievements
Rank 2
answered on 11 Feb 2011, 03:36 PM
Hello,

Whilst the RadListControl is a single column control, you can make radGridView look like a multi column list view control. Please have a look at this knowledge base article. which explains this in detail.
Hope that helps
Richard
0
S
Top achievements
Rank 1
answered on 11 Feb 2011, 04:05 PM
Hi Richard,
thank you for the quick response.

The hints for the events subscribing are helpful - in my previous trials to misuse the gridview control, I did the sugested property settings, but knew not how to get rid of the cell borders. Yet still here a problem - I want to display the column headers as they normaly are (with theming and borders), and want to get rid of the rest of the cell borders.
Any ideas how to do this using the suggested solution?

Many thanks in advance.

Kind regards,
Seilhardt.
0
Richard Slade
Top achievements
Rank 2
answered on 11 Feb 2011, 04:11 PM
Hello,

If you want to display the column headers, this can be done by setting
this.radGridView1.ShowColumnHeaders = true;


and to not draw the border on all of the data cells, you can use the CellFormatting event.
this.radGridView1.ViewCellFormatting += new Telerik.WinControls.UI.CellFormattingEventHandler(this.radGridView1_ViewCellFormatting);
  
        private void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                e.CellElement.DrawBorder = false;
            }
        }

hope that helps, but let me know if you need more information
Richard
0
S
Top achievements
Rank 1
answered on 11 Feb 2011, 04:30 PM
Thank you Richard,
I'll give it a try and will post here the results...

Kind regards,
Seilhardt.
0
S
Top achievements
Rank 1
answered on 15 Feb 2011, 12:39 PM
Hi Richard,

well, I've tested the proposed solution and it looks very well - the way I want it to look out.
It also surprisingly performs very good even used with large amount of list items.

Thank you for the help.

Kind regards,
Seilhardt.
0
Richard Slade
Top achievements
Rank 2
answered on 15 Feb 2011, 12:43 PM
You're welcome, please remember to mark as answer,
Thanks
Richard
Tags
General Discussions
Asked by
Mohan
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
S
Top achievements
Rank 1
Share this question
or