• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 87
  • Last Modified:

C# Infragistics - Delete Row - Add to Initialize Component

So, I want to add the below code to my winform.  However in order for it to fire I need to add it to the Initialize component.  Anyone know how to add it?
public void ultraGrid1_BeforeRowsDeleted(object sender, Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs e)

Open in new window

I've tried below but getting an error on ultraGrid1_BeforeRowsDeleted().  Says its missing BeforeRowsDeletedEventArgs.
this.ultraGrid1.InitializeRow += new Infragistics.Win.UltraWinGrid.InitializeRowEventHandler(this.ultraGrid1_BeforeRowsDeleted(this, ????));

Open in new window

1 Solution
Did you try something like:

this.ultraGrid1.BeforeRowsDeleted+= this.ultraGrid1_BeforeRowsDeleted;

private void ultraGrid1_BeforeRowsDeleted(object sender, Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs e)
	// Do your stuff

Open in new window

I suggest you ask your question on Infragistics forums (http://www.infragistics.com/community/forums/) and also look at
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now