AlphaBlendSelection for Current Row
But I want to use internally
the MoveTo( rowindex+1, ..
GridSetCurrentCellOptions.BeginEndUpdate | ..);
How to force the AlphaBlendSelection for the new current Row .
I tried after MoveTo the Grid.RefreshRange(GridRangeInfo.Row(e.RowIndex)
But it doesn''t work.
I hope you understand my problem.
I don''t want to use PrepareViewStyleInfo
ADAdministrator Syncfusion Team February 22, 2005 04:47 PM
Do you have ListBoxSelectionMode set to something other than none?
For me using 3010, with that ListBoxSelectionMode set, just calling grid.CurrentCellMoveTo was enough to move the selection to another row with the whole row selected (with the exception of the currect cell).
Is it only the CurrentCell that you need to color? Or is it all cells in teh row that are no being selected?
To color the CurrentCell, you will have to use CellDrawn and call e.Graphics.FillRectangle with teh alphaselectioncolor to color that cell.
STStefan TsalapatisFebruary 23, 2005 10:05 AM
Thanks Clay . It was my mistake in a
Can you help in another one case please.
In an existing GridControl I had set not Resize Columns. Now I want to change to Resize but
I do not remember what I did or how to change it.
May be the problem is in my code or settings.
I did set again the same settings as
your sample HighLightCurrentRow.
CurrentCellBehavior= ..None RefreshCurrentCellBehavior=.RefreshRow
I have code in OnQueryColWidth for the
Last Column but doesn''t influence.
I tried to resize the ColWidths[..] in
OnResizingColumns and I can do it there ( I would prefer it ) but the GridResizingColumnsEventArgs ->
e.Reason never equals to ResetDefault.
I can catch only the e.Reason=MouseUp
and in this case the e.Width equals to
May be you can help me .
ADAdministrator Syncfusion Team February 23, 2005 11:59 AM
If you add this ResizingColumns event handler,
private void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
you should see HitTest pop up in the output window and see the cursor change to a sizing cursor when you move ove a column header border. Do you?
If not, have you done anything with mouse controllers or are you doing something special in QueryCellInfo when e.RowIndex == 0?
STStefan TsalapatisFebruary 23, 2005 12:14 PM
I can not see the Hit Test
in your sample ( modified from me)
this code works ok.
e.Columns.GetFirstCell(out row,out col);
if(e.Width != ColWidths[col])
In my Grid every time
is e.Width == ColWidths[col])
In QueryCellInfo for Column Headers
e.Handled = true;
ADAdministrator Syncfusion Team February 23, 2005 01:15 PM
Are you overriding OnResizingColumns? If so, are you calling the baseclass? This would prevent the events from being raised.