RB
Richard Bysouth
July 11, 2007 06:57 AM UTC
that last line was wrong, should have been
m_Grid.CurrentCellInfo.RowIndex = rowIndex
Do I have to set both CurrentCellInfo.RowIndex AND add the row to the Selections?
I only want to select a single row!
HA
haneefm
Syncfusion Team
July 11, 2007 06:27 PM UTC
Hi Richard,
You can try these code :
this.gridControl1.CurrentCell.MoveTo(2, 2);
this.gridControl1.Model.Selections.Add(GridRangeInfo.Row(2));
Best regards,
Haneef
RB
Richard Bysouth
July 11, 2007 09:58 PM UTC
thanks Haneef
Sorry to ask such simple questions, but how do I retrieve the current rowIndex?
I have tried many many properties such as CurrentCell.RowIndex, CurrentCell.MoveFromRowIndex etc. but none of these return the correct row index!
Is there some documentation somewhere outlining the differences between all of the CurrentCell/Selections/Ranges properties? Couldn't find anything in the Knowledge Base to help me
many thanks
Richard
HA
haneefm
Syncfusion Team
July 12, 2007 08:52 PM UTC
Hi Richard,
How do I retrieve the current rowIndex?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
You can retrieve the current rowIndex by using the CurrentCell.RowIndex.But I am not sure of what be might be causing this strange behavior without a working sample. I have tested this issue in browser sample with Essentail studio V.4.x/5.x. But i was not able to reproduce the issue. Is it possible for you to upload us a minimal sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.
Best regards,
Haneef