Ticket Q352060
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

I would like to get FieldName from FocusedRow

Get focused Editor of MultiEditorRow

created 13 years ago

I access properties (here: the fieldname of the underlying Dataset) of the focused cell in a TcxDBVerticalGrid using this code:
     UnicodeString aFieldName;
     if (vgAdresse->FocusedRow->InheritsFrom(__classid(TcxDBEditorRow))) {
      aFieldName = ((TcxDBEditorRow*)vgAdresse->FocusedRow)->Properties->DataBinding->FieldName;
     }
How can I access the same property of a focused cell, if the row is a MultiEditorRow?
Thank you in advance
Andreas

Comments (3)
DevExpress Support Team 13 years ago

    Hello Andreas,
    Thank you for your message.
    This task has been already discussed in our Support Center. Please review the DQ43855("I would like to get FieldName from FocusedRow") report.
    Feel free to contact us if you have any questions regarding the use of our controls. We will do our best to find an appropriate solution for you.
    Thanks,
    Valdemar

      Hello,
      thank you for your reply. One question to:
      AType := TcxMultiEditorRow(ACustomRow).Properties.Editors[<AIndex>].DataBinding.ValueType;
      Where can a get the value of <AIndex> from?
      Best regards
      Andreas

      DevExpress Support Team 13 years ago

        Hello Andreas.
        Thank you for your response. Please take a look at the How to detect focused datacell (index etc.) in MultiEditorRow report that describes how to get the corresponding Index.
        I hope it will help you achieve the required functionality.
        Best regards,
        Ingvar.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.