送分!请教关于Stringgrid的用法! 请问在如何在Stringgrid的第一行就是外观为灰色按钮的那一行上加入我想要的字符串?例如姓名性别等等?不是数据库所以没用DBgrid另外Stringgrid能否实现自动排序功能? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用ADVGRID6吧~~~~很好用www.51delphi.comwww.playicq.com有下 如: StringGrid1.Cols[0].Text := '经办人'; StringGrid1.Cols[1].Text := '复核人';排序要自己做超级猛料也有几个例程 stringgrid1.cells[0,0]:='姓名';stringgrid1.cells[1,0]:='性别';不能自动排序功能! 1、不能实现自动排序功能。2、加入你想要的字符串、设置列宽、加序号 with StringGrid1 do begin Cells[0,0] := ' 序号'; Cells[1,0] := ' 收费项目'; Cells[2,0] := ' 数 量'; Cells[3,0] := ' 单 价'; Cells[4,0] := ' 金 额'; Cells[5,0] := ' 货 币'; Cells[6,0] := ' 汇 率'; Cells[7,0] := ' 本币金额'; Cells[8,0] := ' 收款方'; Cells[9,0] := ' 备 注'; Cells[10,0] := '应付第三方'; Cells[11,0] := '标志'; ColWidths[2] := -1 ;ColWidths[3] := -1 ; ColWidths[10] := -1 ;ColWidths[11] := -1 ; for iLoop := 1 to RowCount -1 do begin Cells[0,iLoop] := inttostr(iLoop) ; Cells[11,iLoop] := '1' ; end ; end ; 请问为什么没有MSIME? 求DevExpressV39 各位前辈小弟有一事相求请进来看看 为什么总是出现DataBaseLogin对话框要求输入用户名和密码? 关于WebBrowser NewWindow2的高难度问题 简单问题,动态创建的类,怎么设置事件函数(过程) 问个数据库的问题,请高手回答呀 如何读取系统当前控件中选定的字符串 怎么单步跟踪到VCL自带的 component的源代码中啊? 一个简单的问题:字符窜分解 在TreeView控件中。当点击图标时,要改变其图标的图片,如何实现? 怎样用delphi7制作xpmenu?
www.playicq.com
有下
StringGrid1.Cols[0].Text := '经办人';
StringGrid1.Cols[1].Text := '复核人';排序要自己做
超级猛料也有几个例程
stringgrid1.cells[1,0]:='性别';
不能自动排序功能!
2、加入你想要的字符串、设置列宽、加序号
with StringGrid1 do
begin
Cells[0,0] := ' 序号'; Cells[1,0] := ' 收费项目';
Cells[2,0] := ' 数 量'; Cells[3,0] := ' 单 价';
Cells[4,0] := ' 金 额'; Cells[5,0] := ' 货 币';
Cells[6,0] := ' 汇 率'; Cells[7,0] := ' 本币金额';
Cells[8,0] := ' 收款方'; Cells[9,0] := ' 备 注';
Cells[10,0] := '应付第三方'; Cells[11,0] := '标志';
ColWidths[2] := -1 ;ColWidths[3] := -1 ;
ColWidths[10] := -1 ;ColWidths[11] := -1 ; for iLoop := 1 to RowCount -1 do
begin
Cells[0,iLoop] := inttostr(iLoop) ;
Cells[11,iLoop] := '1' ;
end ;
end ;