Results 1 to 4 of 4

Thread: Datagrid&Dataset Refreshing Fail

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    3

    Datagrid&Dataset Refreshing Fail

    Hi everyone
    First i'm sorry for the if here is not interested with my question
    For eg. I have 2 form
    in form1 im using to new data insert to access database and closing it
    than i have datagridview in form2 but here is my problem i can not get the rows which i actually saved in form1.
    I must close the aplication and open again for see newest data.
    i used dataset.clear()
    but still same problem

    waiting for your helps
    thanks

  2. #2
    Junior Member Ragnoth's Avatar
    Join Date
    Feb 2012
    Posts
    28

    Re: Datagrid&Dataset Refreshing Fail

    Hey,

    you could try something like
    Code:
    Me.YOURTableAdapter.Fill(Me.YOURDataSet)

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    3

    Re: Datagrid&Dataset Refreshing Fail

    I used to use that codes already but it didnt work
    vb Code:
    1. Dbdataset.clear()
    2.         Me.PilotTableAdapter.Fill(Me.DbDataSet.pilot)

  4. #4
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: Datagrid&Dataset Refreshing Fail

    try something like

    vb Code:
    1. with yourDatagridview1
    2. .datasource = nothing
    3. .datasource = yourdatatable
    4. .refresh
    5. end with
    but how you will trigger this code is left to you, i mean in some command button click event some thing like
    please note code is untested
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

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