Admittedly this is a newby question, but I did not find any reference to it in the forums so I feel compelled to ask.
I am first trying to make the row header information invisible. I do not want a count of all the rows going down the side of my grid. I cannot believe I cannot find a solution to this, but perhaps I am looking to hard.
Secondly I have shortcut keys to move the grid up and down just like the arrows keys, however I want them to move the grid whether the grid has focus or not. Even if I have to set the focus to the grid and move the cell manually. I have tried a few methods to do this to no avail..
Here is one shot.
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.Move(GridDirectionType.Up, 1, False, False)
Thank you in advance,
ADAdministrator Syncfusion Team October 6, 2004 01:04 AM
To hide the row headers, try:
grid.Properties.RowHeaders = false;
grid.Cols.Hidden = true;
To make a particular cell the currentcell: try
grid.Focus();//if the grid does not have focus
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.
ATAaron TaylorOctober 12, 2004 04:17 PM
Thank you very much Chris.
Both suggestions where just what I was looking for. Being new at this grid is driving me crazy, but at least there is good help here.
>To hide the row headers, try:
>grid.Properties.RowHeaders = false;
>grid.Cols.Hidden = true;
>To make a particular cell the currentcell: try
>grid.Focus();//if the grid does not have focus
>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.