Y yangyang2008 Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-22 #1 在StringGrid中如何知道那些行被用户选中?StringGrid中的goRowSelect为True.
L linsb Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-22 #2 procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin showmessage('行:'+IntToStr(ARow)+'列:'+IntToStr(ACol)); end;
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin showmessage('行:'+IntToStr(ARow)+'列:'+IntToStr(ACol)); end;
Q qiaoda_ly Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-22 #3 TStringGrid有一个Selection属性,它是TGridRect类型,它的Top属性和Bottom的值就代表了被选中的行的行标,Left和Right的值就是所选中的行的列表
Y yangyang2008 Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-22 #4 谢谢QiaoDa_ly!您的回答我很满意。