试用DevExpress控件小记

今天开始试用XtraGrid

  1. 乱试中,发现一个问题,一个GridControl ,两个view,怎么在图型界面去掉一个view?目前没有找到。
  2. 设置panelControl 颜色:
  3. By default, the PanelControl's background is painted by the skin engine, and its content is filled by a gradient bitmap. To disable this feature, please set the BorderStyle property to None. By hiding rounded borders you will disable the skinning painting and the background color will start to work just as you need.

    有一点变态,背景色控制由BorderStyle来开关。

  4. 为什么DevExpress.Utils.Frames.NotePanel不能使用?

    看示例代码,发现DevExpress.Utils.Frames下的控件,但在工具箱中却找不到。查看官网,有原因的:

The NotePanel control doesn't have much functionality. It is only used in our tutorial projects and is not published to a toolbox. You can use it via code in your applications if you need to. However, we don't support this control and can remove it from the assembly in future releases.

Thanks,
Michael.

所以,还是不用为妙。

  1. Grid:
    Grid views support the grouping feature, which means that some data rows can be hidden within collapsed groups. In such views, the BaseView.RowCount property value identifies the number of non-hidden rows,也就是说RowCount所指的行数不是数据源中的实际行数,而是在grid控件中显示的行数

    Note that in MultiSelect, the focused row is not always selected. The array of selected row handles, that is returned by the ColumnView.GetSelectedRows method, may not contain the focused row handle, which is identified by the ColumnView.FocusedRowHandle property.
    也就是说select和focuse并不是一回事

    当启用SelectionChanged事件时,若要选择多个选项而不想每次都触发SelectionChanged事件,可以通过BaseView.BeginSelection/BaseView.EndSelection来实现。

  2. DevExpress换肤手把手教程(转):http://dev.firnow.com/course/4_webprogram/asp.net/netjs/20100714/445857.html
posted @ 2011-05-08 08:18  黄金单刀  阅读(560)  评论(0编辑  收藏  举报