. Net language APP development platform-scycler Learning Log: quick implementation of commonly seen GridView and scyclergridview on mobile phones

Source: Internet
Author: User

. Net language APP development platform-scycler Learning Log: quick implementation of commonly seen GridView and scyclergridview on mobile phones
First, scycler is a development platform that uses the. Net language to develop apps in the VS environment. It may be more convenient than Xamarin. 1. Target Style

The following operations are required to achieve the effect:

1. Drag a GridView control from "scycler Components" on the toolbar to the form interface.

2. Modify the property a. load Event code of the GridView control.
VB: Private Sub TestGridView2_Load (senderAs Object, e As EventArgs) Handles MyBase. load Dim matTable As New DataTable matTable. columns. add ("MAT_DESC1", GetType (String) matTable. columns. add ("MAT_DESC2", GetType (String) matTable. columns. add ("MAT_DESC3", GetType (String) matTable. rows. add () matTable. rows (0) ("MAT_DESC1") = "Vicky leave" matTable. rows (0) ("MAT_DESC2") = "pending approval" matTable. rows (0) ("MAT_DESC3") = "11 am" matTable. rows. add () matTable. rows (1) ("MAT_DESC1") = "Vicky leave" matTable. rows (1) ("MAT_DESC2") = "pending approval" matTable. rows (1) ("MAT_DESC3") = "2015.09.09" Me. gridView1.DataSource = matTable Me. gridView1.DataBind () End Sub
C #: private void TestGridView2_Load (object sender, EventArgs e) {DataTable matTable = new DataTable (); matTable. columns. add ("MAT_DESC1", typeof (string); matTable. columns. add ("MAT_DESC2", typeof (string); matTable. columns. add ("MAT_DESC3", typeof (string); matTable. rows. add (); matTable. rows [0] ["MAT_DESC1"] = "Leave for Vicky"; matTable. rows [0] ["MAT_DESC2"] = "pending approval"; matTable. rows [0] ["MAT_DESC3"] = "11 am"; matTable. rows. add (); matTable. rows [1] ["MAT_DESC1"] = "Leave for Vicky"; matTable. rows [1] ["MAT_DESC2"] = "pending approval"; matTable. rows [1] ["MAT_DESC3"] = "2015.09.09"; this. gridView1.DataSource = matTable; this. gridView1.DataBind ();}
B. Layout attributes

Create a MobileForm item, name it MessageShow2, drag an Image control and three Label controls, 1

The DisplayMember attributes of the three Label controls are respectively bound to the columns to be displayed.

The Layout attribute of the GridView, which is bound to the new form MessageShow2, 3

Figure 1 Figure 2 Figure 3
3. scycler Form Design Interface display Effect

Ii. Mobile phone effect display

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.