I have a question on TCRDBGrid.
TCRColumn has has a property SummaryMode.
There I can choose to show either average, sum etc of the column. But what if I want to make my custom detail?
I assume that setting SummaryMode to smLabel will help me. But I do not know how to use it. And in MyDAC Help I do not have anything about this.
Can you please tell me how can I make a custom detail on a column?
Thanks
TCRDBGrid and SummaryMode
You can assign a custom summary value for a column in this way:
We will add the description of the smLabel summary mode in the CRControls help in the next MyDAC build.
Code: Select all
CRDBGrid1.Columns[2].SummaryMode := smLabel;
CRDBGrid1.Columns[2].TotalString := 'some_custom_value';-
eduardosic
- Posts: 387
- Joined: Fri 18 Nov 2005 00:26
- Location: Brazil
CRDBGrid..
TCRDBGrid it is an excellent component, one more time corelab presents an excellent solution.Antaeus wrote:You can assign a custom summary value for a column in this way:We will add the description of the smLabel summary mode in the CRControls help in the next MyDAC build.Code: Select all
CRDBGrid1.Columns[2].SummaryMode := smLabel; CRDBGrid1.Columns[2].TotalString := 'some_custom_value';
Without saying in Mydac 5 and the DisconnectModel technology that is the best thing of the world.