Results 1 to 4 of 4

Thread: Can We refresh DataSet Like Recordset in VB 6 with Requery Method

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    141

    Resolved Can We refresh DataSet Like Recordset in VB 6 with Requery Method

    Can We refresh DataSet Like Recordset in VB 6
    with Requery Method
    Last edited by Waseemalisyed; May 10th, 2005 at 06:41 AM. Reason: ok

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Can We refresh DataSet Like Recordset in VB 6 with Requery Method

    You can .Clear() it and then fill it using the dataadapter again, but why do you want to do that?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    141

    Re: Can We refresh DataSet Like Recordset in VB 6 with Requery Method

    we Use this funtion for Fill DataGrid
    when we make changes in record we want datagrid automically update

    public void InitializeGrid(string CName,string Name,string System.Data.DataSet DS,System.Windows.Forms.Form SrhFrm)
    {
    try
    {
    DS1 = DS;
    tn = Tname;
    searchFrm = SrhFrm;
    dataGrid1.TableStyles.Clear();
    DataGridTableStyle grdTableStyle1 = new DataGridTableStyle();
    dataGrid1.DataSource = DS.Tables[Tname];
    }
    catch(Exception e)
    {
    MessageBox.Show(e.Source);
    }
    }

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Can We refresh DataSet Like Recordset in VB 6 with Requery Method

    Tell me where I'm lost... when you make changes to the datagrid, the changes will automatically be 'placed' into your datagrid.

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