ویرایش یک فیلد Memo در DBGrid
ویرایش یک فیلد Memo در DBGrid :
function TCustomDBGrid.GetEditLimit: Integer;
begin
Result := 0;
if Assigned(SelectedField) and (SelectedField.DataType in [ftString, ftWideString, ftMemo]) then
Result := SelectedField.Size;
end;
function TCustomDBGrid.GetEditText(ACol, ARow: Longint): string;
begin
Result := '';
if FDatalink.Active then
with Columns[RawToDataColumn(ACol)] do
if Assigned(Field) then
Result := Field.AsString; FEditText := Result;
end;
+ نوشته شده در دوشنبه بیست و چهارم خرداد ۱۳۸۹ ساعت 18:33 توسط سعيد نعيمي
|