Problem in adodc1 connectivity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhijeetroy
    New Member
    • Aug 2007
    • 3

    Problem in adodc1 connectivity

    Dear All....

    I am doing a project where adodc1 has connected through below mentioned code.

    Adodc1.Recordse t.Close
    Adodc1.Recordse t.Source = "select gno,gdesc,gqty, gvalue from gntemp"
    Adodc1.Recordse t.Open
    Set DataGrid1.DataS ource = Adodc1.Recordse t
    DataGrid1.ReBin d

    By this code sometimes data is showing into the datagrid and some time data is not showing. If somebody can help me to resolve the problem then i will be greatful to him.

    Regards

    Abhijeet
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Refresh the Datacontrol before binding and after changing rec source ,

    ADODC1.Refresh

    Regards
    Veena

    Comment

    Working...