Ticket Q35845
Visible to All Users

Focuced parent row in GridControl

created 16 years ago

Hi,
There is grid control with data like on the picture.
1.     I select child row with name “GGGG”. But focused row is still QQQ2.
 Do you know properties which allows to select child row and set focus for parent and child row?
2.      When I remove rows in the child grid, I need to be removed child grid when there is no rows.
Do you have property which will cover similar behavior?
Best regards,
Iaroslav Semenenko

Comments (1)
DevExpress Support Team 16 years ago

    Hello Iaroslav,

    1. You should handle the GridControl.FocusedViewChanged event and set the focused row of the master view to the SourceRowHandle property of the focused child view.
    2. Handle the GridView.RowCountChanged event and check the GridVew.DataRowCount property. If it is 0, close the corresponding master row using the SetMasterRowExpanded method.
      Please let us know if these solutions meet your requirements.
      Thank you,
      Paul

    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.