unit Unit14;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters,
cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, cxEdit,
DB, cxDBData,
StdCtrls, ExtCtrls, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
dxmdaset, cxGridLevel, cxClasses, cxGridCustomView, cxGrid;
type
TForm14 =
class(TForm)
cxGrid1DBTableView1: TcxGridDBTableView;
cxGrid1Level1: TcxGridLevel;
cxGrid1: TcxGrid;
DataSource1: TDataSource;
dxMemData1: TdxMemData;
dxMemData1Feld: TStringField;
cxGrid1DBTableView1RecId: TcxGridDBColumn;
cxGrid1DBTableView1Feld: TcxGridDBColumn;
Timer1: TTimer;
Label1: TLabel;
procedure Timer1Timer(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form14: TForm14;
implementation
{$R *.dfm}
procedure TForm14.Timer1Timer(Sender: TObject);
Var
i : Integer;
s :
String;
begin
s := IntToStr(cxGrid1DBTableView1.Controller.SelectedRowCount)+'
rows selected: ';
for I := 0
to cxGrid1DBTableView1.Controller.SelectedRowCount - 1
do
s := s + VarToStr(cxGrid1DBTableView1.Controller.SelectedRows[i].Values[0])+'
, ';
Label1.Caption := s;
end;
end.