Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141768 | Jan 3,2019 10:29 AM UTC | Jan 3,2019 12:43 PM UTC | WinForms | 3 |
![]() |
Tags: GridGroupingControl |
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
private void button1_Click(object sender, EventArgs e)
{
this.gridGroupingControl1.Table.SelectedRecords.DeleteAll();
} |
this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Row;
private void button1_Click(object sender, EventArgs e)
{
var range = this.gridGroupingControl1.TableControl.Selections.GetSelectedRows(true,true);
foreach (GridRangeInfo info in range)
{
for (int i = info.Bottom; i >= info.Top; i--)
{
Element el = this.gridGroupingControl1.TableModel.GetDisplayElementAt(i);
Console.WriteLine("Selected RowIndex : " + info.Top + " =====> " + el);
el.GetRecord().Delete();
}
}
this.gridGroupingControl1.TableControl.Selections.Clear();
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.