摘要: DataGridView的即时更新方法 收藏 最近用了DataGridView,深有体会,最深刻一点是它的事件。我想很多人都希望编辑表格单元的同时更新其他东西,就好像TextBox的TextChanged事件,但DataGridView却没有提供类似TextChanged那样的事件。我想用下面的一个例子说明如何达到实时更新的效果。 上面的Form有一个DataGridView实例dataGrid... 阅读全文
posted @ 2010-05-13 14:35 chaobj 阅读(11492) 评论(0) 推荐(1) 编辑
摘要: 导读:   当前单元格指的是 DataGridView 焦点所在的单元格,它可以通过 DataGridView 对象的 CurrentCell 属性取得。如果当前单元格不存在的时候,返回Nothing(C#是null)   // 取得当前单元格内容   Console.WriteLine(DataGridView1.CurrentCell.Value);// 取得当前单元格的列 Index   C... 阅读全文
posted @ 2010-05-13 14:00 chaobj 阅读(25181) 评论(1) 推荐(1) 编辑
摘要: select trunc(sysdate ,'dd') from dual ; -- 2007-9-19select trunc(sysdate ,'yyyy') from dual ; --2007-1-1select trunc(sysdate ,'mm') from dual ; --2007-9-1begin dbms_output.put_line( to_char ( (sysdate) , 'yyyy-mm-dd hh24:mi:ss' ) ) ;dbms_output.put_line( to_char ( (sy 阅读全文
posted @ 2010-05-13 09:23 chaobj 阅读(7407) 评论(0) 推荐(0) 编辑