社区
Delphi
帖子详情
请问按了DBGrid的column可以排序吗? 不用order by
tiger
2000-06-08 03:25:00
8日5点前回答我可以排序并告知步骤的可以再给300分!!!
...全文
220
5
打赏
收藏
请问按了DBGrid的column可以排序吗? 不用order by
8日5点前回答我可以排序并告知步骤的可以再给300分!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
zxh1972
2000-06-09
打赏
举报
回复
先要给表中要排序的每个字段建立一个索引,
在
procedure TForm1.DBGrid1TitleClick(Column: TColumn);
begin
Table1.IndexFieldNames:=Column.FieldName;//单个索引的情况
end;
saipm
2000-06-08
打赏
举报
回复
最直接的方法就改用TDBGridEH, 这个构件有属性可以直接设置, TDBGridEH可以从网上下载.
lance
2000-06-08
打赏
举报
回复
1. SQl
2.深度历险上有专门控件。
shylsz
2000-06-08
打赏
举报
回复
先要给表中要排序的每个字段建立一个索引,然后再根据所选的列来判断使用哪个索引
Un1
2000-06-08
打赏
举报
回复
在HeadClick中设置recordset.sort="xxxx",别忘了refresh
最新Ehlib 5.2.84(含完整源代码,支持delphi XE)
Ehlib 是著名的数据库连接控制,版本为5.2.84,
DB
grid
增强VCL控件;支持多表头,多固定列,按表头
排序
,支持合计列,并支持直接打印。可以和PB的ataWindow媲美。 本版本含完整源代码,支持以下 IDE: Delphi 5,6,7,2005 C++Builder 5,6 BDS 2006 (Delphi 2006, C++Builder 2006) Delphi 2007 RAD Studio 2009 (Delphi 2009, C++Builder 2009) Embarcadero RAD Studio 2010 (Delphi 2010, C++Builder 2010) 本人已在Delphi XE中运行通过,在本人编制的进销存软件中应用完全正常。 注:Delphi 2010、XE里面安装不要修改bpl文件的输出路径,采用默认值,否则安装难以成功。 Version 5.2 + Added feature to group data in the
DB
Grid
Eh. It is allowed to make grouping at run-time and design-time. Grouping works only when the
grid
is connected to TMemTableEh dataset. Use next subproperties of
Grid
.DataGrouping property to adjust grouping Active: Boolean - Set this propery true to active grouping. DefaultStateExpanded: Boolean - defines initial expapnding/collapsing state of new created elements of the grouping tree. GroupLevels: T
Grid
DataGroupLevelsEh - Collection of group levels. Use this property to create template of the grouping. GroupPanelVisible: Boolean - Set this property to True to show special panel at the top part of the
grid
. Then the panel is thisible it is allowed to form group levels by mouse. Drag title of the requaried
column
to the group panel and drop it onto panel. Font: TFont - Controls the attributes of the default font of group records in the
grid
. Color: Tcolor - Default background color of the group records. See demonstration project of grouping in Demos\DataGrouping directory. Version 5.1 * The type of RowPanel property was changed. Instead of Boolean type, now it is an object property with subproperies: Active: Boolean - Defines if it is possible to place cells under each over and if every propetry can have personal hight. + NavKeysNavigationType: T
Grid
RowPanelNavKeysNavigationTypeEh - defines the
order
of navigation over cells in the
grid
when keys Up, Down, Left, Right are pressed. rpntRowT
delphi
db
grid
_如何在Delphi
DB
Grid
中对记录进行
排序
delphi
db
grid
Delphi
DB
Grid
is such a powerful component that you're probably using it every day if you're developing data-aware applications. Below, we'll take a look at how to add some more features...
单击
db
grid
列标题
排序
升降序
delphi中如何通过单击列标题进行升降
排序
, 在
db
grid
的ontitleclick事件里添加这样的事件处理 1 procedure TForm3.
DB
Grid
1TitleClick(
Column
: T
Column
); 2 begin 3 if frmDataPool.qry需要做的事.SQL.Text.Contains('DESC') then 4 begi...
双击
db
grid
排序
的问题
有关双击
db
grid
排序
的问题(想让用户双击
db
gird控件的某一个字段时就升序,再双击就降序....?)【DFW:DouZheng】procedure TForm1.
DB
Grid
1TitleClick(
Column
: T
Column
); var temp, title: string; begin temp :=
Column
.FieldName; qusp.Close; if
Column
.I...
单击
db
grid
的title进行
排序
我找到了使用 ADOQUERY 控件实现的方法,可做参考:巧用
DB
Grid
控件的Sort属性实现"点击标题栏自动
排序
功能很多朋友在使用
DB
Grid
控件时,抱怨没有点击标题栏便可自动
排序
的功能,实际上通过ADOQuery或其它数据集组件的Sort属性配合
DB
Grid
的OnTitleClick事件,可以方便地实现此功能。因为Sort属性可以让活动数据集按指定的字段进行
排序
,也可以选择
排序
方式(升序 ...
Delphi
5,392
社区成员
262,732
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章