Use of several special attribute methods of the vsflexgrid Control

Source: Internet
Author: User

Use of several special attribute methods:
Formatstring property: pipe character format string example:
Findrow attribute: This attribute returns a row value.
Cell attribute usage:
Cell is used to set specific values for the selected block. For specific values, see the corresponding attribute values.
Syntax: Cell (condition criterion, row1, col1, row2, col2) = Corresponding Criterion Value
The "condition criterion" has the following criterion constants, and the values of the corresponding criterion are set according to the criterion:
Flexcpalignment alignment
Flexcpbackcolor background color
Flexcpchecked selection box
Flexcpcustomformat settings
Flexcpdata date
Flexcpfloodcolor
Flexcpfloodpercent background color
Flexcpfont font
Flexcpfontbold bold
Flexcpfontitalic Italic
Flexcpfontname
Flexcpfontsize font size
Flexcpfontstrikethru strikethrough
Flexcpfontunderline underline
Flexcpfontwidth character width
Flexcpforecolor
Flexcpheight height
Flexcpleft left
Flexcppicture
Flexcppicturealignment chart alignment
Flexcprefresh refresh
Flexcpsort Classification
Flexcptext character
Flexcptextdisplay characters
Flexcptextstyle text style
Flexcptop returns the top height, which is the same as the rowpos and valuematrix attributes.
Flexcpvalue returns the character value
Flexcpvariantvalue returns the character value
Flexcpwidth return unit width
Flexstsum method: adds a subtotal row to each row. [This method is not used yet] Syntax:
VSG. flexstsum constant name,
[Groupon as long],: label column
[Totalon as long],: Calculate a column
[Format as string],: format, for example, "$0.00"
[Backcolor as color],: Color
[Forecolor as color],: Color
[Fontbold as Boolean],: false | true
[Caption as string],: Example "Number % s"
[Matchfrom as integer],: 0 | 1 | 2 | 3
[Tatalonly as Boolean]: false | true

Click the column header to drag and exchange columns:
Vsg1.ererbar = flexexmove '2. This is the simplest method.
Note that only 0, 1, 2, 3, 5, 7, and 8 constant values are set for this attribute in the VB Attribute Table.
Assumerbar attribute (value = 0 | 1 | 2 | 3 | 5 | 7 | 8 ):
0-flexexnone: Default. Click the column header to select the entire column, and click the row header to select the entire row.
1-flexexsort: Click the column header to sort the column forward and backward, and click the row header to select the entire row
2-flexexmove: Click the column header to switch the column sequence, and click the row header to select the entire row.
3-flexexsortandmove: provides functions of 1 and 2.
4: Click the column header to sort the column in positive and negative order, and the corresponding arrow is displayed in the column header. Click the row header to select the entire row.
5-flexexsortshow: similar to 4
6: 2 and 4 features
7-flexexsortshowandmove: similar to 6
8-flexexmoverows: Click the column header to select the entire column. You can drag the row.
9: Click the column header to sort the column in positive and negative order and drag the row.
10: lines and columns that can be dragged
11: sortable columns and drag Columns
12: You can sort columns, display corresponding arrows in the column header, and drag rows.
13: Same as 12.
14: In addition to 12 functions, you can drag Columns
15: Same as 14.

List of vsflexstring control attributes
Casesensitive ???
Get error information when error fails
Index
Matchcount returns the number of strings consistent with the search condition.
Matchindex sets the index of the string consistent with the Search Condition
Matchlength: gets the same string length as the search condition.
Matchstart obtains the start position of a string consistent with the search condition.
Matchstring gets the same string as the search condition.
Name
Object
Parent
Pattern: Set search conditions
Replace string
Soundex obtains the sound code representing the currently retrieved characters
Tag
Tagcount obtains the number of tags consistent with the search condition.
When multiple tags exist, set/obtain the tag index consistent with the search criteria.
Use taglength to obtain the Tag Length consistent with the search condition.
Use tagstart to obtain the start position of a tag consistent with the search condition.
Tagstring gets the string of the tag that matches the search condition.
Set text as a search object
Obtain the flexstring version.
How to adjust the width of a row or column during runtime
Allowuserresizing = 1' adjustable Column
Allowuserresizing = 2' adjustable row
Allowuserresizing = 3' adjustable rows and columns

 

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.