Tailor Your DataGrid Apps Using Table Style and Custom Column Style Objects

      One of the most enduring challenges in writing user interfaces is figuring out how to display large amounts of data efficiently and intuitively without bewildering the user. The problem becomes particularly thorny when the interface must reflect hierarchical relationships within the data that the user needs to modify. The Windows Forms DataGrid control gives developers a powerful and flexible tool to meet this challenge. This article explains its basic operations and shows how to extend the DataGrid to display columns of data in an application-appropriate manner.

      The DataGrid is one of the most powerful Windows® Forms controls. By using default DataGrid property settings you can easily bind a DataSet to a DataGrid to create an impressive Windows Forms user interface—one that allows users to drill down through multiple levels of hierarchical data and sort and reorder columns. While it is easy to get started with the DataGrid control, leveraging its more sophisticated capabilities—for example, creating custom column displays—remains lightly documented and requires some trial and error. In this article I will explain how to bind to a DataGrid, illustrate the basic features of the control, and show how to exercise extensive control over the appearance and behavior of tables and columns. Finally, I'll demonstrate how you can extend the DataGrid control with custom column style objects by implementing a type that displays column values in a dropdown combobox.

参见MSDN

http://msdn.microsoft.com/zh-cn/293d3a86-fc59-44cf-a8f1-bad799457e79


 

转载于:https://www.cnblogs.com/simplefrog/archive/2012/07/14/2591557.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值