我如何使用infragistics.win.ultrawingrid.initializeroweventhandler [英] How do I use infragistics.win.ultrawingrid.initializeroweventhandler
问题描述
我对C#完全陌生,所以我会问对大多数人来说都是新手的问题.我正在尝试在网格中添加一列,并正在关注youtube视频以实现此目的.程序员使用以下语句:
I am completely new to c # so I will be asking questions that are completely novice to most. I am trying to add a column in a grid and was following a youtube video in order to do this. The programmer used the following statement:
mygrid.InitializeRow += new Infragistics.Win.UltraWinGrid.InitializeRowEventHandler(grdMatLst_InitializeRow);
但是我在编译代码时复制了该错误,但出现以下错误:
which i replicated however when I compile the code i get the following error:
Error: CS0103 - line 38 (555) - The name 'grdMatLst_InitializeRow' does not exist in the current context
我非常确定grdMatLst作为一个实体不存在,但是我似乎无法弄清楚用什么替换它.在这个问题上,我会寻求帮助吗?
我尝试过的事情:
我试图用其他实体替换字符串的grdMatLst部分,但是我似乎无法找到正确的方法来构造它.
Im quite certain that grdMatLst does not exist as an entity however I cannot seem to figure out what to replace it with. I would appriciate any help on this issue?
What I have tried:
I have tried to replace the grdMatLst part of the string with other entities however I caanot seem to find the right way to construct this.
推荐答案
grdMatLst
控件可能存在,但grdMatLst_InitializeRow
事件处理程序方法不存在.
您需要在表单的代码文件中创建方法:
ThegrdMatLst
control might exist, but thegrdMatLst_InitializeRow
event handler method doesn''t.
You need to create the method in your form''s code file:
private void grdMatLst_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
{
}
Handling and Raising Events - MSDN[^]
这篇关于我如何使用infragistics.win.ultrawingrid.initializeroweventhandler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!