我刚才看了一下官方的demo代码,和你写的帖子是一样的,不过下面几行代码需要关注:
- private void TDBDropDown_Load(object sender, EventArgs e)
- {
- c1TrueDBGrid1.SetDataBinding(DemoDataSource("Orders"), "", true);
- c1TrueDBDropdown1.SetDataBinding(DemoDataSource("Customers"), "", true);
- c1TrueDBDropdown2.SetDataBinding(DemoDataSource("Employees"), "", true);
- }
复制代码
不执行这个代码的截图:
执行这个代码的截图:
--------------------------------------------------------------------
完整的demo代码如下:
|