P pingping2 Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-28 #1 [brown]tdbgrid中的字段名如何修改其title100分能用即送[/brown]
Y Yhhe Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-28 #2 DBGrid1.Columns[0].Title.Caption:='1';//将第一个title修改为1; DBGrid1.Columns[1].Title.Caption:='2';//将第一个title修改为2;
DBGrid1.Columns[0].Title.Caption:='1';//将第一个title修改为1; DBGrid1.Columns[1].Title.Caption:='2';//将第一个title修改为2;
P pingping2 Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-28 #3 对不起是iwdbgrid,而且是在动态中,sqlquery.open后面,报out bound错误
P pingping2 Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-30 #4 我的iwdbgrid一开始是visible是false,所以用你的语句时报内存错误
R realLearning Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-31 #5 iwdbgrid.onrendcell if ARow=0 then ACell.Text := 'xxxxx'
L luky_99 Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-31 #6 var i:integer; begin if DBGrid1.FieldCount >0 then begin for i:=0 to dbgrid1.FieldCount-1 do begin dbgrid1.Fields.DisplayLabel:='?稱э??嘿'; end; end; end;
var i:integer; begin if DBGrid1.FieldCount >0 then begin for i:=0 to dbgrid1.FieldCount-1 do begin dbgrid1.Fields.DisplayLabel:='?稱э??嘿'; end; end; end;
X xiao78 Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-31 #7 realLearning, 的方法应该可以 我是用继承Form(父类上有grid)的方法做的, 每个子类grid columns加入不同的fields, 在title的属性里就可以改字段名了.
P pingping2 Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-01 #8 TOLUCK99你这种方法不能用,我的iwdbgrid中好象SQLQUERY.OPEN后没有coloumn,所以报错,好象只有visible=true以后才能有coloumn所以只此时才能加入。
G gyang Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-01 #9 直接用SQL写,方便点 'SELECT Field1 As 字段1,Field2 As 字段2 FROM TableName'
P pingping2 Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-03 #10 togyang,这个方法不错,我先试试,能用给你200分,十分感谢