Multiple grid view in multiple taps

4 posts, 1 answers
  1. Anoop
    Anoop avatar
    76 posts
    Member since:
    Sep 2006

    Posted 22 Mar 2011 Link to this post

    I want to run separate query in each grid view, these grids is located in deferent taps that was created via dock…

    Is that possible in rad grid view for win form?

    The information I need to add is retrieved from the same DB

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

    Posted 22 Mar 2011 Link to this post

    Hello Anoop,

    I'm not really sure what your requirement is. Please could you expand on what you wish to do, including any supporting code and screenshots that may help.
    thanks
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Anoop
    Anoop avatar
    76 posts
    Member since:
    Sep 2006

    Posted 23 Mar 2011 Link to this post

    Hi Rechard,
    As you see I wana use in each tap separate grid view, each one should have different query however my bind method is running only one query in two grid

    How can I make it more flexible and running in each tap?

    thanks in advance

    Function BindGrid2(ByVal queryString As String) As DataSet
      
            Dim settings As ConnectionStringSettings
            settings = System.Configuration.ConfigurationManager.ConnectionStrings("")
            Dim connectionString As String
            connectionString = ""
      
            Dim Dbcon = New SqlConnection(connectionString)
            Dbcon.Open()
            Dim rd As SqlDataReader
            Dim cmd = New SqlCommand(queryString, Dbcon)
            rd = cmd.ExecuteReader()
            rd.Read()
            RadGridView1.MasterTemplate.LoadFrom(rd)
            rd.Close()
      
        End Function
  5. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Mar 2011 Link to this post

    Hello Anoop,

    You can bind more than one grid to the same data source if that's what you mean. Or you could pass in the grid that you wish to bind to your method, or better still give the querystring, and pass back a data source which would make it more generic.

    I hope that helps, but let me know if you need more information
    Richard
Back to Top