How can I get the value from a cell?

Discussion forum for PivotCube VCL users. Common questions. Bug and problem reports

Moderator: Alex Zencovich

How can I get the value from a cell?

Postby alexhaifa » Fri Aug 31, 2007 5:24 pm

Hello,

I my Pivotgrid I want to give a dbclick and get the value from the cell that was clicked. How can I do this?

Thanks
alexhaifa
User
 
Posts: 13
Joined: Thu Nov 30, 2006 7:38 pm

Postby AlexZencovich » Fri Aug 31, 2007 5:56 pm

var
Value : string;

Value := TPivotGrid.Cells[Col,Row];


There is string result because property may return at number as string value (for row/column headers or in case of custom formating)

Col,Row is parameters of OnDataCellDblClick event handler
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby alexhaifa » Fri Aug 31, 2007 8:50 pm

thanks friend
alexhaifa
User
 
Posts: 13
Joined: Thu Nov 30, 2006 7:38 pm


Return to PivotCube VCL

Who is online

Users browsing this forum: No registered users and 4 guests

cron