. Net language APP development platform -- scycler Learning Log: Use the Gridview control to design complicated forms, scyclergridview

Source: Internet
Author: User

. Net language APP development platform -- scycler Learning Log: Use the Gridview control to design complicated forms, scyclergridview
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 TestGridView3_Load (senderAs Object, e As EventArgs) Handles MyBase. load Dim matTable As New DataTable With matTable. columns. add ("MAT_IMG", GetType (String )). columns. add ("MAT_DESC1", GetType (String )). columns. add ("MAT_DESC2", GetType (String )). columns. add ("MAT_DESC3", GetType (String )). rows. add (). rows (0) ("MAT_IMG") = "img97 ". rows (0) ("MAT_DESC1") = "¥69.00 ". rows (0) ("MAT_DESC2") = "2015/07/08 ". rows (0) ("MAT_DESC3") = "1 invoice ". rows. add (). rows (1) ("MAT_IMG") = "img96 ". rows (1) ("MAT_DESC1") = "¥39.00 ". rows (1) ("MAT_DESC2") = "2015/07/08 ". rows (1) ("MAT_DESC3") = "1 invoice ". rows. add (). rows (2) ("MAT_IMG") = "img95 ". rows (2) ("MAT_DESC1") = "¥280.00 ". rows (2) ("MAT_DESC2") = "2015/07/08 ". rows (2) ("MAT_DESC3") = "1 invoice" End With Me. gridView1.DataSource = matTable Me. gridView1.DataBind () End Sub
C #: private void TestGridView3_Load (object sender, EventArgs e) {DataTable matTable = new DataTable (); matTable. columns. add ("MAT_IMG", typeof (string); 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_IMG"] = "img97"; matTable. rows [0] ["MAT_DESC1"] = "¥69.00"; matTable. rows [0] ["MAT_DESC2"] = "2015/07/08"; matTable. rows [0] ["MAT_DESC3"] = "1 invoice"; matTable. rows. add (); matTable. rows [1] ["MAT_IMG"] = "img96"; matTable. rows [1] ["MAT_DESC1"] = "¥39.00"; matTable. rows [1] ["MAT_DESC2"] = "2015/07/08"; matTable. rows [1] ["MAT_DESC3"] = "1 invoice"; matTable. rows. add (); matTable. rows [2] ["MAT_IMG"] = "img95"; matTable. rows [2] ["MAT_DESC1"] = "¥280.00"; matTable. rows [2] ["MAT_DESC2"] = "2015/07/08"; matTable. rows [2] ["MAT_DESC3"] = "1 invoice"; this. gridView1.DataSource = matTable; this. gridView1.DataBind ();}
B. Layout attributes

Create a new MobileForm item, name it MessageShow3, and drag a Label control, 1

In the Layout attribute of the GridView, bind the new form MessageShow3, 2

Figure 1 Figure 2
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.