| |

VerySource

 Forgot password?
 Register
Search
View: 679|Reply: 3

dbgrid not reference dataset in datatable

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-5 00:10:01
| Show all posts |Read mode
I use adapter to generate a datatable in the dataset, but the datamember of dbgrid cannot be referenced !!!
But I can see this datatable when I open the dataset schema file, please enlighten me ?!
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-5 07:12:01
| Show all posts
Write code directly in the background
  this.datagrid1.datasource = ds.table ["table name"];
  this.datagrid.databind ();
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-8 14:27:01
| Show all posts
Can you give your code and error message
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-18 00:36:01
| Show all posts
datagrid1.datasource = ds
 datagrid.datamember = ds.table ["table name"]
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list