Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
19889 | Oct 5,2004 09:39 PM UTC | Oct 12,2004 08:17 PM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
Private Sub btnUp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUp.Click
'' Move the cell view up one
If gridTrading2.CurrentCell.RowIndex() > 0 And gridTrading2.CurrentCell.RowIndex() < gridTrading2.RowCount Then
gridTrading2.CurrentCell.Activate(gridTrading2.CurrentCell.RowIndex(), 5)
gridTrading2.CurrentCell.Move(GridDirectionType.Up, 1, False, False)
End If
End Sub
Any ideas?
Thank you in advance,
Aaron Taylor
grid.Properties.RowHeaders = false;
//or
grid.Cols.Hidden[0] = true;
To make a particular cell the currentcell: try
grid.Focus();//if the grid does not have focus
grid.CurrentCell.MoveTo(someRowIndex, someColIndex);
The MoveTo method can also take a 3rd parameter that you can use to actually activate the cell for editing (GridSetCurrentCellOptions.SetFocus) among other setting.
>grid.Properties.RowHeaders = false;
>//or
>grid.Cols.Hidden[0] = true;
>
>
>To make a particular cell the currentcell: try
>
>grid.Focus();//if the grid does not have focus
>grid.CurrentCell.MoveTo(someRowIndex, someColIndex);
>
>The MoveTo method can also take a 3rd parameter that you can use to actually activate the cell for editing (GridSetCurrentCellOptions.SetFocus) among other setting. 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.