Cf 2.0 usage of DataGrid tablestyles

Source: Internet
Author: User

Public Function dgstyle11 () as datagridtablestyle
'Second Style
Dim ts11 as datagridtablestyle = new datagridtablestyle
Ts11.mappingname = "style11"

Dim cs11 as datagridcolumnstyle = new datagridtextboxcolumn
Cs11.mappingname = "item number"
Cs11.headertext = "item"
Cs11.width = 50

Ts11.gridcolumnstyles. Add (cs11)

Dim cs12 as datagridcolumnstyle = new datagridtextboxcolumn
Cs12.mappingname = "Description"
Cs12.headertext = "Description"
Cs12.width = 100
Ts11.gridcolumnstyles. Add (cs12)

Dim cs13 as maid = new maid
Cs13.mappingname = "cpcount"
Cs13.headertext = "check"
Cs13.width = 30
Ts11.gridcolumnstyles. Add (cs13)

Dim cs14 as datagridcolumnstyle = new datagridtextboxcolumn
Cs14.mappingname = "stock"
Cs14.headertext = "system check"
Cs14.width = 30
Ts11.gridcolumnstyles. Add (cs14)

Dim cs15 as datagridcolumnstyle = new datagridtextboxcolumn
Cs15.mappingname = "Diff"
Cs15.headertext = "difference"
Cs15.width = 30
Ts11.gridcolumnstyles. Add (cs15)

Dim cs16 as datagridcolumnstyle = new datagridtextboxcolumn
Cs16.mappingname = "PG"
Cs16.headertext = "PG"
Cs16.width = 20
Ts11.gridcolumnstyles. Add (cs16)

Dim cs17 as datagridcolumnstyle = new datagridtextboxcolumn
Cs17.mappingname = "Shop"
Cs17.headertext = "Shop"
Cs17.width = 50
Ts11.gridcolumnstyles. Add (cs17)

Return ts11
End Function

 

Dg1.tablestyles. Add (dgstyle11)

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.