且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Datagrid更新问题

更新时间:2022-12-03 14:30:37

Brett,


我看到很多,但是我看不到的是你设置的地方新的带有数据源的
数据集作为数据源?


Cor

Brett,

I see a lot, however what I don''t see is where you set that new readed
dataset to your datagrid as a datasource?

Cor


嗨Cor ...感谢您的回复......


数据源是否由执行者查询更新?

如果没有,我该怎么办?关于设置它?
Hi Cor... Thanks for the response....

Doesnt the datasource get updated by the executenonquery??
If not, How would I go about setting it?


Brett,


我看到你这样做了。
Brett,

I see that you do this.
dgStaff。 EditItemIndex = -1
daStaff.Fill(DsStaff1)
dgStaff.DataBind()
dgStaff.EditItemIndex = -1
daStaff.Fill(DsStaff1)
dgStaff.DataBind()




我认为这是你的数据集,所以我期待a

dgStaff.Datasource = DsStaff


或者那里的东西


Cor



I assume that that is your dataset so I would expect a
dgStaff.Datasource = DsStaff

Or something there

Cor