. 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