那个空间在那下/我也只是用过以前的dxdbgrid

解决方案 »

  1.   

    http://www.zglong.com/bbs/list.asp?boardid=17Demo中也没办法设置,我以前的方法是将dxGrid的grouppanelColor and grouppanelfontcolor  设为一样,但在cxGrid中却无法设置!
    请教高手!
      

  2.   

    CSDN上没有高手,只有热心肠的人....哈哈!!!!
      

  3.   

    分组简单,
     if (not VarIsNull(GoodOrgDataSet.Data)) and (not VarIsEmpty(GoodOrgDataSet.Data)) then
        begin
          for I:=0 to GoodOrgDataSet.FieldCount-1 do
            cxGridDBTableView1.Columns[I].Options.Editing:=False;
          with  cxGridDBTableView1 do
          begin
           {Connect dynemic Column with static Column *@-@Snake_Eye}       RoleColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[2].FieldName;
           Max_NumColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[4].FieldName;
           IDColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[0].FieldName;
           RoleNameColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[3].FieldName;
           NameColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[1].FieldName;
           Role_Real_NumColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[5].FieldName;
           Lock_NumColumn.DataBinding.FieldName:=GoodOrgDataSet.Fields[6].FieldName;
           {dynemic Group *@-@Snake_Eye}       RoleColumn.GroupIndex:=1;
           Max_NumColumn.Styles.Header:=stSnake;
           Max_NumColumn.Options.EditIng:=True;
           RoleColumn.Visible:=False;
           DataController.Groups.FullExpand;       GoodOrgDataSet.First; RoleColumn.GroupIndex:=1;(主要就是这句话)
     RoleColumn是你在GridView里添加的列,一定要先数据帮定就是上面的代码。
    csGrid是DXGrid的新版本!
      

  4.   

    DevExpress 升级至4.0以上后,类名就变成了cxGrid,它不能直接显示数据,要在它里面建Level-》TableView..DBTalbeView等后才能显示数据,cxGrid只是一个控件容器,很多原来的属性都在相应的View上面
    顺便给你发了它的汉化文件