. 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
3. scycler Form Design Interface display Effect
Ii. Mobile phone effect display