Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7669431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:35:38+00:00 2026-05-31T15:35:38+00:00

Is it possible to access the horizontal offset, which I can’t find in the

  • 0

Is it possible to access the horizontal offset, which I can’t find in the property list of the datagrid ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:35:39+00:00Added an answer on May 31, 2026 at 3:35 pm

    In XAML

     <DataGrid Name="dataGrid1" ..... />
    

    If you want to access to the HorizontalOffset you need to access to the ScrollViewer contained inside the Datagrid

    one possible method to access the ScrollViewer is

    for (int i = 0; i < VisualTreeHelper.GetChildrenCount(dataGrid1); i++)
    {
           if (VisualTreeHelper.GetChild(dataGrid1, i) is ScrollViewer)
        {
                  ScrollViewer scroll =
            (ScrollViewer)(VisualTreeHelper.GetChild(dataGrid1, i));
                               Console.WriteLine(scroll.HorizontalOffset);
        }
    }
    

    Note that scroll.HorizontalOffset is read-only

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to access the list items in the (hidden) Forms subfolder of
Is it possible to access Flash's ExternalInterface from QWebView ? If so, how can
Is it possible to access phone storage in WP7 Mango? I can see Adobe
Is it possible to access movies which were purchased via iTunes in an app?
Possible Duplicate: Access database of another app I made an app which is a
Is it possible to access the previous element generated in a list comprehension ?
Is it possible to access a base class function which has the same signature
Is it possible to access the document files for a particular application? Can you
Possible Duplicate: Access x86 COM from x64 .NET I have a COM object which
IS it possible to access web content directly from the (Safari) toolbar? I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.