Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C# Infragistics - Delete Row - Add to Initialize Component

Posted on 2016-08-08
1
Medium Priority
?
77 Views
Last Modified: 2016-08-12
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

0
Comment
Question by:CipherIS
1 Comment
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 2000 total points
ID: 41748508
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
http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v12.1~Infragistics.Win.UltraWinGrid.UltraGrid~BeforeRowsDeleted_EV.html
and
https://msdn.microsoft.com/en-us/library/edzehd2t.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-4
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question