[DevExpress] obtains RepositoryItem and devexpress Based on the row and column indexes.

Source: Internet
Author: User

[DevExpress] obtains RepositoryItem and devexpress Based on the row and column indexes.

Key code:

/// <Summary> /// Based on the row, retrieve RepositoryItem by column index /// </summary> /// <param name = "view"> GridView </param> /// <param name = "rowIndex"> row index </param> /// <param name = "columnIndex"> column index </param> /// <returns> RepositoryItem </returns> public static RepositoryItem GetRepositoryItem (this GridView view, int rowIndex, int columnIndex) {GridViewInfo _ viewInfo = view. getViewInfo () as GridViewInfo; GridDataRowInfo _ viewRowInfo = _ viewInfo. rowsInfo. findRow (rowIndex) as GridDataRowInfo; return _ viewRowInfo. cells [columnIndex]. editor ;}
Hope this is helpful!

C # DevExpress control repositoryItemCheckEdit

First, the repositoryItemCheckEditd column must have been bound to a data column, that is, the data source of the repositoryItemCheckEditd column in The gridview able bound to the gridview, and then set the repositoryItemCheckEditd column to editable.
You can.

For the RepositoryItemComboBox control of DevExpress

RepositoryItemComboBox you can set the items it contains, but it cannot control which one it chooses. The selected value is displayed in GridControl. You can obtain the value displayed in GridControl, to determine which item is selected by RepositoryItemComboBox.

Related Article

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.