DataGrid Questions in new Version


Why ist not works in VisualBasic 2005 Express to fill the DataGrid with the DataSet

Example....
ds as DataSet

DataGrid1.SetBindings(ds,"Test")



And how it works now

Anyone can help me ! !


Answer this question

DataGrid Questions in new Version

  • Mesktomten

    Hi,

    Bindings in Datagrid should be this way:

    Dim ds as DataSet
    datagrid1.DataSource = ds



    cheers,

    Paul June A. Domag

  • Thos

    Hi,

    If your dataset already contains a datatable with a data, then it should show the contents of your datatable. Be sure that your datasource or dataset is not empty. Or if your using asp.net then you should bind the control after setting its datasource.

    datagrid1.DataBind()





    cheers,

    Paul June A. Domag


  • tstdemo

    Thanks !
    But this not works !
    If i use this there are no Data in the Datagrid.
    Must i update the Datagrid to see the Data

  • DataGrid Questions in new Version