摘要:
Most recommended way to create web or windows database applications is based on "allocation" of the data access layer (DAL) in a separate layer. There are many ways to create this layer, of course,... 阅读全文
posted @ 2007-03-08 14:07
冷火
阅读(320)
评论(0)
推荐(0)
摘要:
DataAdapter 的 Update 方法:将 DataSet 中的更改解析回数据源。DataSet保存的数据是位于服务器内存里面的原数据库的“副本”。所以用DataSet更新数据的过程就是先对“副本”进行更新,然后在将“原本”更新。 Update 方法会将更改解析回数据源,但是自上次填充 DataSet 以来,其他客户端可能已修改了数据源中的数据。若要使用当前数据刷新 DataSet,请再次... 阅读全文
posted @ 2007-03-08 13:48
冷火
阅读(391)
评论(0)
推荐(0)
摘要:
Windows Forms DataGridView 没有提供合并单元格的功能,要实现合并单元格的功能就要在CellPainting事件中使用Graphics.DrawLine和 Graphics.DrawString 自己来“画”。下面的代码可以对DataGridView第1列内容相同的单元格进行合并: private void dataGridView1_CellPaintin... 阅读全文
posted @ 2007-03-08 13:37
冷火
阅读(799)
评论(0)
推荐(0)
摘要:
MSDN2005年11月刊登载了John Papa的一篇文章《DataSet and DataTable in ADO.NET 2.0》,详细介绍了ADO.Net 2.0的一些新功能和特性,对于利用ADO.NET开发的程序员来说,是值得关注的。现介绍如下: 一.功能增强的DataTable 在ADO.NET1.x中,DataSet完全 掩盖了DataTable的光芒,并非DataTable自身功... 阅读全文
posted @ 2007-03-08 10:17
冷火
阅读(264)
评论(0)
推荐(0)