I have created Windows Application. In this, I have multiple tables in dataset, now I want to bind that to a single DataGridView. Can anybody help me?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
use like this :-
I hope it helps!!
following will show one table of dataset
if you want to show multiple tables, you need to create one datatable or custom object collection out of all tables.
if two tables with same table schema
sample code to mode all tables
you can set the dataset to grid as follows:
//assuming your dataset object is ds
tablename is the name of the table, which you want to show on the grid.
I hope, it helps.
B.R.