Skip to content

Replies

0
Haithem Gharsalli
Haithem Gharsalli answered on Jan 28, 2016 2:08 PM

Hello Milko,

I’d like to thank you for the suggestions, you’re right this is exactly what I want.
However, I can not manage to use IUIElementCreationFilter. It looks like this is what I need, but I do not know how to use it.
I make my classe inherit of IUIElementCreationFilter and it makes me implement two methods AfterCreateChildElements and BeforeCreateChildElements.
Would it be possible for you to help me with this ?

0
Haithem Gharsalli
Haithem Gharsalli answered on Nov 5, 2015 1:15 PM

This is exactly what I wanted, thanks a lot for your help ! 🙂
Have a nice day ! 

0
Haithem Gharsalli
Haithem Gharsalli answered on Oct 20, 2015 2:39 PM

Hello Milko,

Thank you for you answer.

I've created a button to delete the current row(s). Here's the code about it :

private void deleteButton_Click(object sender, EventArgs e)
{

         // Check if there are any selected rows.
         if (this.UltraGridExcludes.Selected.Rows.Count > 0)
         {
                 // Delete the selected rows by calling DeleteSelectedRows.
                 this.UltraGridExcludes.DeleteSelectedRows();
          }
          else
          {
                 // Show a message if there are no selected rows.
                 MessageBox.Show("There are no rows selected. Select rows first.");
           }
}

But it does not work. It always returns me the messageBox. I tried Ctrl+clic, Ctrl+A, Ctrl+Shif+clic, double clic, … to select a row but it still not pass into the if statement. Maybe I'm doing something wrong ?

Edit: I do not have the little column on the left to see the current row selected with the little black arrow. That's maybe why I have always 0 row selected when I take a look to the count() result.

Edit 2: I add the colum for the row selection, and it's working, thank you Milko !  

0
Haithem Gharsalli
Haithem Gharsalli answered on Oct 15, 2015 4:17 PM

Hello Milko,

Thank you for your answer.

I tried to set the value of AllowAddNew to TemplateBottom and it worked !

I keep in mind what you told, thank you !

Have a nice day !