[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.