Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
25631 | Mar 2,2005 04:25 PM UTC | Mar 3,2005 08:44 AM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None;
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;
And then use this code to move the currentcell, it the currentrecord gets selected for me.
gridGroupingControl1.TableControl.CurrentCell.MoveTo(this.gridGroupingControl1.TableControl.Model.RowCount ,1);
gridGroupingControl1.Table.SelectedRecords.Clear();
gridGroupingControl1.Table.SelectedRecords.Add(gridGroupingControl1.Table.CurrentRecord);
private void gridGroupingControl1_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e)
{
gridGroupingControl1.Table.SelectedRecords.Clear();
gridGroupingControl1.Table.SelectedRecords.Add(gridGroupingControl1.Table.CurrentRecord);
}
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.