repositoryitemcombobox 被选中的值 在哪
展开全部
可以得到RepositoryItemComboBox 选中索引,通过在SelectedIndexChanged 事件的处理,
((RepositoryItemComboBox)gridView.Columns["ColName"].ColumnEdit).SelectedIndexChanged += new System.EventHandler(ColName_SelectedIndexChanged);
//事件处理如下:
private void ColName_SelectedIndexChanged(object sender, System.EventArgs e)
{
int i = ((DevExpress.XtraEditors.ComboBoxEdit)sender).SelectedIndex;
}
((RepositoryItemComboBox)gridView.Columns["ColName"].ColumnEdit).SelectedIndexChanged += new System.EventHandler(ColName_SelectedIndexChanged);
//事件处理如下:
private void ColName_SelectedIndexChanged(object sender, System.EventArgs e)
{
int i = ((DevExpress.XtraEditors.ComboBoxEdit)sender).SelectedIndex;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询