用ado连接acess数据库,其中有一个字段类型为备注,在DBGird中显示不出其中的内容,显示为(MEMO),请问怎么显示内容
解决方案 »
- dataset not in edit or insert mode用的是ClientDataSet 急!!!!!
- 如何用变量调用接口函数
- 急问题:clientdataset更新后字符型数据后面加空格补齐的原因
- 让DBLookupComboBox1自动设置为下拉列表的第一个,是设置哪个属性(这个问题有点弱哈)
- 急!!!!!fastreport基础简单问题!
- 请问webbrowser中使用COOKIE或者SESSION的问题,点入看问题详细描述(UP即给分)
- 请问有哪位做过文件搜索程序?
- 2000分大放送之<四>!向明日到访的古巴领袖菲德尔·卡斯特罗致敬!
- 用listview实现数据列表,如何按column排序?(点击一列就可以自动升、降序的那种)
- 谁会截获OICQ的消息?!
- 我这样定义集合类型为什么不对呢?
- chechy(简简单单的活) 你是我的偶像!!!
我的 content字段是memo字段procedure TForm1.custDBGridDrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
if(column.field = custdbgrid.DataSource.DataSet.FieldByName('content')) then
begin
custDBGrid.Canvas.FillRect(Rect);
custDBGrid.Canvas.TextOut(Rect.Left,Rect.Top,column.field.AsString);
end;
end;
text:=table.fieldbyname('字段名').asstring;
我的 content字段是memo字段procedure TForm1.custDBGridDrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
if(column.field = custdbgrid.DataSource.DataSet.FieldByName('content')) then
begin
custDBGrid.Canvas.FillRect(Rect);
custDBGrid.Canvas.TextOut(Rect.Left,Rect.Top,column.field.AsString);
end;
end;
不过好像也只有这个办法了,为什么不用第三方控件?:)