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 !