Hi,
I am using XamDataGrid Express Edition.
I have two editable column in grid. I am binding XamTextEditor and its working fine.
Following customisation i want to do:... Plzzzz help me...
1. i want to make this XamTextEditor visible alwayz instead of UserClick on cell and its make visible.
2. User should be able to use Tab key to navigate editor in same record and only editable cells. right now if i use tab key its just focus on cell but not selecting textbox.
3. User can use arrow key up and down to move to next record and should be change value of editable part only.
4. user should not be able to select other non - editable cells...
Please help me on this....
tks
Shrenik
Thank you very much it was excellent ,I was looking for this,
how can I get the indices of the selected cells if multiselection is possible? And how can I set more than one active record?
thanks a lot. I got it!
Hello Gawain,
The rows (records) you can find in the Records collection of the XamDataGrid. Each DataRecord exposes its Cells collection. So one way to get a cell is to find the record in the records collection and then the cell in the cells collection.
Another way would be to get the CellValuePresenter using its static methods - CellValuePresenter.FromCell(...) or CellValuePresenter.FromFieldAndRecord(...). This however will be true if the cell is in view with the default virtualization settings.
Making a cell active can be achieved either by setting the IsActive property to true or setting the ActiveCell property of the XamDataGrid to the instance of the cell that you wish to activate.
I have a similar question: How can I manually select a cell or a row? I need to change the ActiveCell of a Grid in the code by knowing the row and column. How can I do that?
Thanks for helping!Gawain