天道酬勤,学无止境

gridex

How to make a Janus GridEx column readonly?

I'm working on a windows forms app and there is a Janus GridEx component with 3 columns. I don't want users to change the values in the first two columns but I can't find the way to make readonly or allowedit false for the first two columns and third column editable. I've tried changing the editmode but no luck either... anyone out there knows how?

2022-01-17 22:39:42    分类:问答    c#   winforms   janus   gridex

GridEx 项目动态填充(GridEx Item population on the fly)

问题 我们正在使用 GridEx 在我们的 C# 应用程序中填充表格/下拉内容。 我们有以下场景: COL1 COL2 Dropdown Value 每当我们从“下拉列表”中选择一个项目时,相应的“值”就会立即显示出来。 当前,当我们选择“Dropdown”项目并导航到“Value”时,只会显示 Value,这是因为EndCustmEdit事件仅在我们导航到下一个字段时才会被触发。 每当我选择“下拉列表”而不导航到下一个字段时,我都需要动态填充“值”。 有没有办法让我们以这种方式工作? 回答1 你可以通过两种方式做到这一点。 第一个组合/下拉close_up事件或第二个gridEx_CellValueChanged事件。 在这两种情况下,您都必须设置单元格值。 这是CellValueChangedEvent()的示例代码 private void grd_CellValueChanged(object sender, ColumnActionEventArgs e) { if (e.Column.Key == "COL1") grd.SetValue("COL2",Value); } 对于下拉隐藏/特写,你可以试试这个, private void cbo_CloseUp(object sender, EventArgs e) { if (cbo.Text != String

2021-10-25 23:14:56    分类:技术分享    c#-4.0   gridex

GridEx Item population on the fly

We are using the GridEx to populate the table/dropdown contents in our C# application. We have the following scenario: COL1 COL2 Dropdown Value Whenever we are selecting an Item from the "Dropdown" the corresponding "Value" should get displayed on the fly. Currently when we select the "Dropdown" item and navigate to "Value" then only the Value is getting displayed that is because the EndCustmEdit event gets triggered only when we are navigating to next field. I need to have the "Value" populated on the fly whenever I select the "Dropdown" without navigating to next field. Is there a way we can

2021-10-24 07:07:29    分类:问答    c#-4.0   gridex