How tocheck if row exist ?

4 posts, 1 answers
  1. Filleau
    Filleau avatar
    114 posts
    Member since:
    Jun 2006

    Posted 27 Oct 2010 Link to this post

    Hi,

    I'm using the latest telerik build, with VS 2010 (vb net)

    I Have a RadGridView and I fill it programatily.
    There is 4 columns : First Name, Last Name, Age, Adress and many row (near 3000)

    How can I check if a row exist a row with First Name & Last Name already exist, without having to loop on each row and without have effect on the display ?

    Thanks

    Anthony


    Ps : The demo have a lot of error under Windows 7 - 64Bits caused by the OleDB 4.0....
  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 27 Oct 2010 Link to this post

    Hello Fileau,

    Let's start with the demo, it is throwing those exceptions because you have not set the target platform to x86, please change it to x86 and it will work, or you can follow this article

    For the searching, because you are adding the data programmatically ( i assume data binding) i would suggest implementing a search method inside your collection (or if you are not using a collection class) a method that would iterate your collection and perform the search on that directly without going trough the grid, this way it will be faster.

    Other than that you can use filtering to see if there are any values inside the grid that match, but all of these methods are iterating trough all the rows one way or another

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Filleau
    Filleau avatar
    114 posts
    Member since:
    Jun 2006

    Posted 29 Oct 2010 Link to this post

    Hi

    Thanks for your reply.

    Everything work now.
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 29 Oct 2010 Link to this post

    Glad to be able to help, if you have any more questions please just let me know, and if the question has been solved, please mark the question as answered, so that others can find the answers to their questions faster.

    Best Regards,
    Emanuel Varga
Back to Top