Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2589
Clicking cell forces grid to scroll to 1st column
posted

Hello,

I have a grid with many columns, and some of them are out of view so, grid has a horizontal scrollbar. When I scroll to one of latter columns and then click a cell, grid instantly "jumps" to the first column. Selection still persists but it moves out of view.

This happens regardless of SelectionSettings parameters. I tried almost all combinations. Is there a way to fix that or is that only my personal problem?

Thank you.

Parents
  • 21382
    posted

    I tried out your issue with the following code and could not reproduce your claim.  Could you provide the version number of the dll that you are using ? Or a code sample that shows the behavior?

     

          <ig:XamGrid x:Name="grid">       </ig:XamGrid>

     

     

        public class TestClass

        {

            public string Name1 { get; set; }

            public string Name2 { get; set; }

            public string Name3 { get; set; }

            public string Name4 { get; set; }

            public string Name5 { get; set; }

            public string Name6 { get; set; }

            public string Name7 { get; set; }

            public string Name8 { get; set; }

            public string Name9 { get; set; }

            public string Name10 { get; set; }

            public string Name11 { get; set; }

            public string Name12 { get; set; }

            public string Name13 { get; set; }

            public string Name14 { get; set; }

            public string Name15 { get; set; }

            public string Name16 { get; set; }

            public string Name17 { get; set; }

            public string Name18 { get; set; }

            public string Name19 { get; set; }

            public string Name20 { get; set; }

            public string Name21 { get; set; }

            public string Name22 { get; set; }

        }

     

              List<TestClass> t = new List<TestClass>();

                t.Add(new TestClass() {

                    Name1="Hello World",

                    Name2 = "Hello World",

                    Name3 = "Hello World",

                    Name4 = "Hello World",

                    Name5 = "Hello World",

                    Name6 = "Hello World",

                    Name7 = "Hello World",

                    Name8 = "Hello World",

                    Name9 = "Hello World",

                    Name10 = "Hello World",

                    Name11 = "Hello World",

                    Name12 = "Hello World",

                    Name13 = "Hello World",

                    Name14 = "Hello World",

                    Name15 = "Hello World",

                    Name16 = "Hello World",

                    Name17 = "Hello World",

                    Name18 = "Hello World",

                    Name19 = "Hello World",

                    Name20 = "Hello World",

                    Name21= "Hello World",

                    Name22 = "Hello World"                

                });

     

                t.Add(new TestClass()

                {

                    Name1 = "Hello World",

                    Name2 = "Hello World",

                    Name3 = "Hello World",

                    Name4 = "Hello World",

                    Name5 = "Hello World",

                    Name6 = "Hello World",

                    Name7 = "Hello World",

                    Name8 = "Hello World",

                    Name9 = "Hello World",

                    Name10 = "Hello World",

                    Name11 = "Hello World",

                    Name12 = "Hello World",

                    Name13 = "Hello World",

                    Name14 = "Hello World",

                    Name15 = "Hello World",

                    Name16 = "Hello World",

                    Name17 = "Hello World",

                    Name18 = "Hello World",

                    Name19 = "Hello World",

                    Name20 = "Hello World",

                    Name21 = "Hello World",

                    Name22 = "Hello World"

                });

     

                this.grid.ItemsSource = t;

Reply Children
No Data