| Blog信息 |
|
blog名称:注册会计师(注会)练习软件 日志总数:398 评论数量:116 留言数量:27 访问次数:3282969 建立时间:2005年6月6日 |

| |
|
[devexpress相关控件]devexpress的表格中当某条件不满足时某几列只读 软件技术
吕向阳 发表于 2006/9/13 10:49:54 |
|
Grid OptionsColumn
2 msgTimes read: 15
[devexpress.public.dotnet.xtragrid]
Add to your favorite threads (requires login) -- Thread on dev.newswhat.com (beta)
Grid OptionsColumnTarun Patel [Sep 1, 09:58]
Msg has 1 replies
500)this.width=500'>500)this.width=500'> Add Tarun Patel to favorite authors (login) Hi,
I have a grid with several columns displayed. The user can enter data into
the grid which is bound to a datasource. But if certain criteria is met, I
want some of the columns to be readonly.
I know how to set the OptionsColumn properties, but i can't determine the
best possible event to put the code in. Can you please direct me to the
event best suited for this?
Other grids I have used previously, used to have an event like "CanEditCell"
or similar...
Thanks in advance
Re: Grid OptionsColumnHolger Persch [Sep 1, 11:50]
Msg has 0 replies - Go to base msg by Tarun Patel
500)this.width=500'>500)this.width=500'> Add Holger Persch to favorite authors (login) Hi,
You can use the ColumnView's "ShowingEditor" event to do this.
private void gridView1_ShowingEditor(object sender, CancelEventArgs e)
{
if (condition)
{
e.Cancel = true;
}
}
Regards
Holger
|
|
|