English 中文(简体)
How to disable supralink button in devexpress gridview
原标题:How to disable hyperlink button in devexpress gridview
  • 时间:2012-05-16 10:52:18
  •  标签:
  • devexpress

我正在使用玻璃窗应用。 我有一个把数据集中起来的牛津电网,在最后一栏,我有一个超链接,名称为取消。 当我点击取消的纽扣吨时,它将发挥一些可发挥巨大作用的职能。 在取消后,相应的取消纽芬兰语应为残疾。 如何使其残疾? 任何帮助都受到高度赞赏。

最佳回答

执行这项任务有两个途径:

  1. 创建2个ButtonEdit存放处。 其中一个是获得帮助的县,另一个是残疾县。 然后处理 活动和必要的存放项目通过<代码>。 项目参数,根据具体情况。 请见, 帮助专题了解更多信息。

  2. 如果 but子编辑有好几个县,其Enabled州必须积极改变,那么你可以通过处理 如下文所示: 论坛:

    How to display disabled buttons for particular cells within a ButtonEdit column .

But you should follow the first approach, In case of hyperlinkEdit., for your implementation logic add a custom column with bool values, that will give you condition that whether you will show enabled or disabled hyperlinkEdit repository edit.

如果你只是想把这个字句定下来,那么你会做如下的工作:

编辑只能通过处理<代码>CustomRowCellEdit阅读:

private void gridView1_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e)
{
    if(code goes here)
        e.RepositoryItem.ReadOnly = true;
}

您也可阻止编辑通过处理<条码>、打字<>条/代码>进行展示:

private void gridView1_ShowingEditor(object sender, CancelEventArgs e)
{
    if (code goes here)
        e.Cancel = true;
}

希望有助于你完成任务。

问题回答

暂无回答




相关问题
How to do word wrap in a DevExpress TcxGrid?

I ve got a long line of text that would be a lot easier to view if it would just word wrap around multiple lines, but I can t seem to find the option for it. Does anyone know how to enable word-wrap ...

XtraPivotGrid dynamic dataset creation

I already have a dynamic XtraPivotGrid creation, but the table adapter and the dataset are 1(one) table specific. I want to be able to get data from a table specified by user, but I can t see a way of ...

WPF Devexpress ComboBoxEdit Items

i use devexpress comboBoxEdit component in my WPF app. I assign values for it like this: private void Users1_Load() { DataTable dtCat = SqlHelper.GetTable("base_UserCategory_Select", new string[] ...

WPF comboBoxEdit

i Have problem with WPF comboBoxEdit. I load values it it like this: comboBoxEdit1.ItemsSource = dtCat.DefaultView; Values are loaded, everything works good, but when i select some value from ...

How to get row index of the selected cell in WPF grid

Does anyone knows how to get row index of the selected cell in DevExpress WPF grid? In WinForms it was something like that: dataGridViewControll.SelectedCells[0].RowIndex;

Recommended ASP.NET Grid and UI tools [closed]

We are building a web application using C# and SQL server. We are thinking about buying the DevExpress ASP.NET controls. Anybody have any opinions about this tool or have any they would recommend?

TextBoxColumn in DevexpressGridControl (WPF)

In Windows grid is sucha a thing like DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn(); Is something like that in DevExpress GridControll for WPF?Or maybe is possible to do some ...

热门标签