Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

UITableView Horizontal and vertical scrolling

$
0
0

Hi ,

I am trying to show data in table view but i have 6 columns so it will go out of screen. is there any way to scroll tableview horizontally.
i tried with pushing it in UIScroll view but got no success. can any one help me. this will become show stopper for me.

here is my code.

        UIScrollView sc = new UIScrollView ();

        sc.Frame = new System.Drawing.RectangleF (0, 0, 1000, 1000);
        sc.ContentSize = new System.Drawing.SizeF (1000, 1000);


        UITableView tv = new UITableView ();
        tv.ContentSize = new SizeF (800, 800);
        tv.Frame = new RectangleF (0, 0, 800, 800);
        tv.Source = new NiryanAdapter ("niryan");
        sc.Add(tv);
        View.AddSubview (sc); 

Viewing all articles
Browse latest Browse all 58056

Trending Articles