Listview for VB.NET

10 posts, 0 answers
  1. Mohan
    Mohan avatar
    5 posts
    Member since:
    Jan 2009

    Posted 27 Jan 2011 Link to this post

    hi

    Do you have list view for vb.net winforms?

    Thanks
    Raj
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 28 Jan 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Feb 2011 Link to this post

    Hello,

    Did this help? If so please remember to mark as answer.
    If you need more help, just let me know
    Richard
  5. S
    S avatar
    16 posts
    Member since:
    Sep 2010

    Posted 11 Feb 2011 Link to this post

    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.
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Feb 2011 Link to this post

    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
  7. S
    S avatar
    16 posts
    Member since:
    Sep 2010

    Posted 11 Feb 2011 Link to this post

    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.
  8. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Feb 2011 Link to this post

    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
  9. S
    S avatar
    16 posts
    Member since:
    Sep 2010

    Posted 11 Feb 2011 Link to this post

    Thank you Richard,
    I'll give it a try and will post here the results...

    Kind regards,
    Seilhardt.
  10. S
    S avatar
    16 posts
    Member since:
    Sep 2010

    Posted 15 Feb 2011 Link to this post

    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.
  11. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 15 Feb 2011 Link to this post

    You're welcome, please remember to mark as answer,
    Thanks
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready