T thomashukaidi Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #1 如何点击行里任意的cell 获得对这行里各cell的控制 give example thank!!!
T thomashukaidi Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #4 stringrid 点行中的任意cell 我可以得到这行里各cell的value
B bes96261 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #6 var i:integer; CArrary : array[0..MAX_FORM_COUNT, 0..MAX_FORM_COUNT] of string; while i:=0 to StringGrid1.ColCount-1 CArrary:=StringGrid1.Cells[i,StringGrid1.Row];
var i:integer; CArrary : array[0..MAX_FORM_COUNT, 0..MAX_FORM_COUNT] of string; while i:=0 to StringGrid1.ColCount-1 CArrary:=StringGrid1.Cells[i,StringGrid1.Row];
T thomashukaidi Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #7 for example ok? thank! 比如我点cell[0,1] 同时得到cell[1,1]的value 用OnSelectCell可对行里cell控制? 这似乎是对grid全部的cell select控制
for example ok? thank! 比如我点cell[0,1] 同时得到cell[1,1]的value 用OnSelectCell可对行里cell控制? 这似乎是对grid全部的cell select控制
T thomashukaidi Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #8 to bes96261 that's good idea! 但不写数组用stringgrid里的properties可以?
Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #9 “比如我点cell[0,1] 同时得到cell[1,1]的value”???
T thomashukaidi Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #10 同时cell[0,1]点击的语句怎么写
Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #11 你到底要做什么? procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin ShowMessage(StringGrid1.Cells[ACol,ARow]); end;
你到底要做什么? procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin ShowMessage(StringGrid1.Cells[ACol,ARow]); end;
T thomashukaidi Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #12 我点cell[0,1] 得到cell[1,1]的value 或者我点cell[0,3]得到cell[3,3]的value that's i want
Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #13 procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin ShowMessage(StringGrid1.Cells[ARow,ARow]); end;
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin ShowMessage(StringGrid1.Cells[ARow,ARow]); end;
B bes96261 Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-22 #15 var s:string; if StringGrid1.ColCount-1>=StringGrid1.Row+2 then s:=StringGrid1.Cells[StringGrid1.Row+2,StringGrid1.Row]; 至於加多少,根據你的算法定
var s:string; if StringGrid1.ColCount-1>=StringGrid1.Row+2 then s:=StringGrid1.Cells[StringGrid1.Row+2,StringGrid1.Row]; 至於加多少,根據你的算法定
T tecking Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-13 #17 可用StringGrid1GetEditMask()事件吧