Hi Smitha,
Thanks for your interest in Syncfusion products.
To select multiple rows, set the "ListBoxselectionMode" to "MultiExtended".
this.gridControl1.ListBoxSelectionMode = SelectionMode.MultiExtended;
You can handle "contextMenuStrip1.ItemClicked" to check if the menu option selected is "Delete" to delete the rows from the grid.
void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
if (e.ClickedItem.Text == "Delete")
{
if (this.gridControl1.Selections.Count > 0)
{
GridRangeInfoList ranges = this.gridControl1.Selections.Ranges;
foreach (GridRangeInfo r in ranges)
{
this.gridControl1.Rows.RemoveRange(r.Top, r.Bottom);
}
}
}
}
Please refer to the sample in the following link
http://www.syncfusion.com/downloads/Support/DirectTrac/89778/WindowsFormsApplication76-243854808.zip Regards,
Mercy.C