更新基础数据源时刷新DataGridView的最佳方法是什么?
我经常更新数据源,并希望在发生时向用户显示结果.
我已经得到了这样的东西(并且它可以工作),但是忽略DataGridView.DataSource它似乎不是正确的方式.
List<ItemState> itemStates = new List<ItemState>();
dataGridView1.DataSource = itemStates;
for (int i = 0; i < 10; i++) {
itemStates.Add(new ItemState { Id = i.ToString() });
dataGridView1.DataSource = null;
dataGridView1.DataSource = itemStates;
System.Threading.Thread.Sleep(500);
}
Run Code Online (Sandbox Code Playgroud) 我在oracle中创建一个查询的问题似乎并不想加入缺失的值
我有的表是这样的:
table myTable(refnum, contid, type)
values are:
1, 10, 90000
2, 20, 90000
3, 30, 90000
4, 20, 10000
5, 30, 10000
6, 10, 20000
7, 20, 20000
8, 30, 20000
Run Code Online (Sandbox Code Playgroud)
我所追求的领域的分解是这样的:
select a.refnum from myTable a where type = 90000
select b.refnum from myTable b where type = 10000 and contid in (select contid from myTable where type = 90000)
select c.refnum from myTable c where type = 20000 and contid in (select contid from myTable where type …Run Code Online (Sandbox Code Playgroud) 在oracle中,我想创建一个删除sproc,它根据删除的结果返回一个整数.
这就是我到目前为止所拥有的.
create or replace
PROCEDURE Testing
(
iKey IN VARCHAR2
)
AS
BEGIN
delete from MyTable WHERE
TheKey = iKey;
END Testing;
Run Code Online (Sandbox Code Playgroud)
我已经尝试过放置RETURNS INTEGER,但是sproc不会编译.
任何人都能告诉我物化视图设置为使用以下设置刷新的频率?
按需启动强制执行sysdate + 0 NEXT(round(sysdate)+ 1/24)+ 1
我想我每小时都读它,但我不确定