Introduction to data filtering of grid parts interface

Source: Internet
Author: User

It is very convenient to measure the grid parts of the rapid development platform, which can be used to set the filter and find in the right property.
650) this.width=650; "id=" aimg_866 "src=" http://bbs.delit.cn/data/attachment/forum/201601/06/ 111711rkqfqz1pduujpfff.jpg.thumb.jpg "width=" "height=" 156 "alt=" 111711rkqfqz1pduujpfff.jpg.thumb.jpg "/>
in this way, users can easily filter the data that is queried in the database, in the interface.
The above is a simple setup method, we can also use the script to implement the interface data filtering, for other functions. For example, the data in the same grid, we have to export the XLS according to the category, we can use the script to filter the interface data, and then perform the export.
The following code is an example given:
'------------------Code starts-------------------------------------------

' derived from the WYSIWYG output of the mesh part

' through row filtering of grid parts

Mesh Parts 1.DataTable.DefaultView.RowFilter=" category = ' live -in personnel" ' "

Dim FilePath = "c:\expfile\ . xls"

Dim file

file= Mesh Part 1.ExportToExcel (FilePath)

‘-----------------------------------------------------------

Mesh Parts 1.datatable.defaultview.rowfilter= " category = ' medical staff '"

FilePath = "C:\expfile\ medical staff . xls"

file= Mesh Part 1.ExportToExcel (FilePath)

Mesh Parts 1.datatable.defaultview.rowfilter= "1=1"

Original address: http://bbs.delit.cn/thread-572-1-1.html

Reprint please specify the source:

Author: metric Technology http://www.delit.cn

Introduction to data filtering of grid parts interface

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.