我如何使用infragistics.win.ultrawingrid.initializeroweventhandler [英] How do I use infragistics.win.ultrawingrid.initializeroweventhandler

查看:215
本文介绍了我如何使用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事件处理程序方法不存在.

您需要在表单的代码文件中创建方法:
The grdMatLst control might exist, but the grdMatLst_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)
{
}



处理和引发事件-MSDN [



Handling and Raising Events - MSDN[^]


这篇关于我如何使用infragistics.win.ultrawingrid.initializeroweventhandler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆