none
Migration Issue from VB6 to VB.Net RRS feed

  • Question

  • Hi
    1. I migrated vb6 project to vb.net project.
    2. The msdatagrid in vb6 is migrated to vb.net axdatagrid
    3.  while i tried to bind data to that axgrid like

    ReferenceGrid.DataSource = ds.Tables(0)
    it shows error as cannot cast .....

    4. Then i used this code to caste it

    ReferenceGrid.DataSource = CType(ds.Tables(0), msdatasrc.DataSource)


    5. still i cannot bind datasource to axgrid getting error as:

    Unable to cast object of type 'System.Data.DataTable' to type 'msdatasrc.DataSource'

    6. Can any one give me code to bind data to converted axdatagrid.
    chandra shekar thota
    Friday, December 26, 2008 5:49 AM

Answers

All replies