You must Sign In to post a response.
  • Category: Visual Studio

    DataGridView:Window Form Sorting

    Hi ,
    Is good programing sort dataGridView load and unload datasource with a list collection.

    1. Load datagridview data.
    2. Press column header to sort.
    3. Get datasource data to list.
    4. Sort list.
    5. Clear datasource.
    6. Load sorted list.

    I use C# and list of objects.

    Any Help to increase the performance is welcome.

    If you know good tutorial for C# datagridview is welcome.(bindinglist)

    thanks in advance, Mer
  • #756710
    Hai Merovigio,
    The List will work fine but it will always have to load the data based on the column and each row values.
    If you will use the DataSource, it will be faster. So you can use filtering and sorting using the DataView and then load it again.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #756733
    Thanks


  • Sign In to post your comments