protected override string GetItemStatusCore()
        {
            QueryItemStatusRoutedEventArgs args = new QueryItemStatusRoutedEventArgs(
                AutomationQueryEvents.QueryItemStatusForGroupEvent, m_uiGroupOwner);

            m_uiGroupOwner.DataGridContext.DataGridControl.RaiseEvent(args);

            string itemStatus = null;

            if (args.Handled)
            {
                itemStatus = args.ItemStatus;
            }

            return(itemStatus ?? string.Empty);
        }
        protected override string GetItemStatusCore()
        {
            if (m_dataGridContext == null)
            {
                return(string.Empty);
            }

            QueryItemStatusRoutedEventArgs args = new QueryItemStatusRoutedEventArgs(
                AutomationQueryEvents.QueryItemStatusForDetailEvent, m_dataGridContext);

            m_dataGridControl.RaiseEvent(args);
            string itemStatus = null;

            if (args.Handled)
            {
                itemStatus = args.ItemStatus;
            }

            return(itemStatus ?? string.Empty);
        }
    protected override string GetItemStatusCore()
    {
      QueryItemStatusRoutedEventArgs args = new QueryItemStatusRoutedEventArgs(
        AutomationQueryEvents.QueryItemStatusForGroupEvent, m_uiGroupOwner );

      m_uiGroupOwner.DataGridContext.DataGridControl.RaiseEvent( args );

      string itemStatus = null;

      if( args.Handled )
        itemStatus = args.ItemStatus;

      return ( itemStatus ?? string.Empty );
    }
    protected override string GetItemStatusCore()
    {
      if( m_dataGridContext == null )
        return string.Empty;

      QueryItemStatusRoutedEventArgs args = new QueryItemStatusRoutedEventArgs(
        AutomationQueryEvents.QueryItemStatusForDetailEvent, m_dataGridContext );

      m_dataGridControl.RaiseEvent( args );
      string itemStatus = null;

      if( args.Handled )
        itemStatus = args.ItemStatus;

      return ( itemStatus ?? string.Empty );
    }