1,DataGrid控件如何将前几列固定,就是横的滚动条拉动时,前几列不动。
2,如何在DataGrid中加入日期,Combox等控件。以上都是在winform中的问题

解决方案 »

  1.   

    http://blog.csdn.net/ChengKing/archive/2006/05/28/759064.aspx
      

  2.   

    C#中WinForm下datagrid中实现Datetimepicker日期控件---类源码
    http://maxianghui.blogchina.com/3328833.html
      

  3.   

    to 1,DataGrid控件如何将前几列固定,就是横的滚动条拉动时,前几列不动。这个比较困难,你需要控制横向滚动条的操作。to 2,如何在DataGrid中加入日期,Combox等控件。这个比较简单
    How can I put a combobox in a column of a datagrid?
    http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q480qHow can I add a DateTimePicker column style to the DataGrid?
    http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q1145q
      

  4.   

    建议使用DataGridView,直接支持该功能,
    针对DataGrid可以参考
    http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx