I am using Infragistics Netadvantage 2009 vol.1. VS2005, Framework 2.0, Language C#
I am having a wingrid with 10 rows and 5 columns. Out of the 5 columns 2 columns are non editable and 3 columns are editable. I wanted to select multiple rows using the shift key. [Let us say I want from 2nd row to 8th Row]
When I do that, on the non editable cells, the entire rows are selected. Where as if I do on the editable cells only that columns are selected and not the rows.
How to achieve this functionality.
Tried: CellClickAction.RowSelect, when I do that, the editable cells are not going into edit mode.
Please help us.
Hi,
I'm not sure I follow you. You say that somehow, columns are getting selected? Or did you mean cells?
If you have a selected row and then you hold shift and click on another row, then the grid should select a range of rows, not cells.It does not matter whether the cell is editable or not. My guess is that something in your code is causing this.
It might help if you turned off cell selection by setting SelectTypeCell to None.
Oh, I had another thought...
Are you saying that you are clicking on an editable cell and then shift+clicking on another cell?
Or are you saying that you are selecting a row and then shift+clicking on another row?
If it's the former, then the CellClickAction should do what you want.
Hi Mike..
Thank you replying.
As soon as I clicking on the editable cell, the whole row is selected[Assume I am on the 2nd Row, 3rd Column].
Now I am clicking on the same column 5th Row, 3rd Column. using the Shift+click.
If the Column is a Readonly mode, the entire intervening rows [i.e between 2 & 5] are selected.
If the column is an Editable mode[I mean the cell is an editable mode], only the intervening column is selected and not the intervening rows [i.e between 2 & 5]
Did you try turning off cell selection like I suggested?
If the cell is actually in edit mode (there is a blinking caret in the cell), then the grid is in a sort've "cell" mode, so that's probably why this is happening. If you turn off cell selection, then I'm pretty sure the grid will fall back to selecting rows instead, since that's the only thing that makes sense.
If that does not work, see if you can post a small sample project demonstrating the behavior you are getting so I can take a look and see what's going on.
Have you been able to resolve your issue ? Did you have a time to take a look at the modification that I made in your sample. Please send me a feedback.
Regards
Thanks for attached sample. I hope that I correctly understand your scenario and desire behavior. Could you please take a look at the attached sample and modifications that I made in the code. Maybe this is one possible approach to achieve the desire behavior. Please write me If I misunderstood your scenario or if you have any questions
I did.. but, no luck. I had prepared a sample project. Which is happening.
Please help me. infragistics. Great.!!