Results 1 to 3 of 3

Thread: [2008] DataGridView - is this feasible?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Location
    Manchester, England
    Posts
    255

    [2008] DataGridView - is this feasible?

    Hello,
    I'm trying to replicate functionality present in a legacy system.
    The old system has what could be referred to as a DataGridView. The SelectionMode is FullRowSelect.
    I've bound the DataGridView, and want to allow the user to query content of the DataGridView by creating a new, empty, row at the top of the grid (whilst disabling the "selectability" of the other rows), switching the SelectionMode to CellSelect where the user can type in any data that may be contained in the grid, press OK, and produce a filtered grid based on the data the user has queried for.
    Is this possible?
    At home - VB.NET 2005/2008 Express, Visual Web Developer 2005 Express
    At work - VS 2008 Standard (VB)
    .NET 2.0/3.5


    Visual Studio Express Learning Centre | How do I videos | MSDN VB Express Forum | MSDN VB Developer Centre

  2. #2
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [2008] DataGridView - is this feasible?

    Must the user enter the filterable conditions in the DataGridView? I think it would be easier to use TextBoxes that are external to your DataGridView, bind your data to a BindingSource and use the BindingSource's Filter Property.

    http://msdn.microsoft.com/en-us/libr...ce.filter.aspx
    http://www.c-sharpcorner.com/UploadF...74917PM/1.aspx (in C#)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Location
    Manchester, England
    Posts
    255

    Re: [2008] DataGridView - is this feasible?

    Thanks for your reply.
    At the time of writing, I have to try and maintain the "look-and-feel" of the old software, and this particular feature is widely used by all of our clients.
    As a contingency, I'd already started doing what you've suggested.
    If it is possible, then I'd like to do it.
    If not, I'll continue down the route I've taken.

    All suggestions welcome ....
    At home - VB.NET 2005/2008 Express, Visual Web Developer 2005 Express
    At work - VS 2008 Standard (VB)
    .NET 2.0/3.5


    Visual Studio Express Learning Centre | How do I videos | MSDN VB Express Forum | MSDN VB Developer Centre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width