Data set part 2

from my data set i would like to dislay the contans of each table in a data grid. The user can only choice one table I have all the tables in a drop down box). how is this done.

Answer this question

Data set part 2

  • CindyPsych

    Hi!

    Do you mean this question: "How to make user selected table to be displayed in DataGrid "

    If yes, then you can simply set DataGrid.DataSource to the selected table.



  • MMatt

    You can handle dropdown's SelectedIndexChanged event, grab the selected table name. Assign table name to the DataMember property of the grid, and dataset to DataSource property of the grid.
  • Data set part 2