本文介绍了如何使用checkedit gridcontrol devexpress来选择行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编码中使用了C#,而我使用gridcontrol devexpress 2010来显示数据联系人列表。

i have a winfrom using C# in my coding , and i use gridcontrol devexpress 2010 to show data contact list.

在选择这些列表后,我得到值从gridcontrol,我选择并按按钮确定得到它。我不知道代码。

after select those list i get the value from gridcontrol that i select and press button OK to get it. I don't know the code.

任何人都可以建议我,....谢谢

anyone can suggest me,....thanks

推荐答案

首先,我建议您使用知识库文章:

First of all i suggest you to the KB article: How to select rows via an unbound checkbox column

在13.2之前的版本中,您可以使用以下两种方法
手动实现列选择列:

In versions prior to 13.2, you can use the following two methods to manually implement a column for row selection:


  1. 向您的数据源添加一个布尔数据列,将保持所选行的状态。

  2. 使用未绑定的网格列。

第一种方法很容易实现,但是向
数据添加dummy列通常被禁止由于应用程序的
业务逻辑的限制。

The first approach is easy to implement, but adding "dummy" columns to data is often forbidden due to the constraints of an application's business logic.

下面说明了第二种方法。

创建一个数组,用于存储所选择的行状态。创建
一个,其值将与数组同步。
编写一个 CustomUnboundColumnData 事件处理程序来获取/设置unbound
列值。

看到这里完美的例子:

使用checkBoxEdit列的DevExpress XtraGrid控件

Create an array that will store the selected states of rows. Create an Unbound Column whose values will be in sync with the array. Write a CustomUnboundColumnData event handler to get/set unbound column values.
See perfect example of this here:
DevExpress XtraGrid Control with checkBoxEdit column

参考文献:

希望此帮助..

这篇关于如何使用checkedit gridcontrol devexpress来选择行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 21:47