DragFaq
В хелпе есть пример:
Код: var
I: Integer;
ARowIndex: Integer;
ARowInfo: TcxRowInfo;
begin
with tvOrders.DataController do
begin
BeginUpdate;
try
for I := 0 to GetSelectedCount - 1 do
begin
ARowIndex := GetSelectedRowIndex(I);
ARowInfo := GetRowInfo(ARowIndex);
//Test whether a row is a grouping row
if ARowInfo.Level < Groups.GroupingItemCount then
Continue
else
//unbound or provider mode
Values[ARowInfo.RecordIndex, tvOrdersSaleDate.Index] := Now();
end;
finally
EndUpdate;
end;
end;
end;
В хелпе есть пример:
Код: var
I: Integer;
ARowIndex: Integer;
ARowInfo: TcxRowInfo;
begin
with tvOrders.DataController do
begin
BeginUpdate;
try
for I := 0 to GetSelectedCount - 1 do
begin
ARowIndex := GetSelectedRowIndex(I);
ARowInfo := GetRowInfo(ARowIndex);
//Test whether a row is a grouping row
if ARowInfo.Level < Groups.GroupingItemCount then
Continue
else
//unbound or provider mode
Values[ARowInfo.RecordIndex, tvOrdersSaleDate.Index] := Now();
end;
finally
EndUpdate;
end;
end;
end;