Ticket Q325381
Visible to All Users

View.FocusedColumn no longer available?

created 14 years ago

Is View.FocusedColumn no longer available in v2011 vol 1? We were using it in 2010 vol 2. Ex:
               viewmodel.AddEntity();
               Dispatcher.BeginInvoke(new Action(() =>
                    {
                         foreach (GridColumn t in Grid.Columns)
                         {
                              if (t.AllowEditing != DefaultBoolean.False)
                              {
                                   Grid.View.FocusedColumn = t;
                                   break;
                              }
                         }
                         Grid.Focus();
                         Grid.View.ShowEditor();
                    }),
                    System.Windows.Threading.DispatcherPriority.Loaded
                    );
I switched my project to 2011 and I get the error "Cannot resolve symbol FocusedColumn".

Comments (3)
DevExpress Support Team 14 years ago

    Hi John,
    To resolve this problem, please cast Grid.View to the TableView class.
    For example:

    C#
    ((TableView)Grid.View).FocusedColumn = t;

    Thanks,
    Andrew

      Thanks, that's got it!

      DevExpress Support Team 14 years ago

        Hi John,
        I am glad to hear that the problem has been resolved. Thank you for letting us know of your progress.
        Please feel free to contact us in case of any difficulty. We will be happy to assist you.
        Thanks,
        Andrew

        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.