Hi,
I have a grid view with 3 fields, a numeric field, a date, and a text filed:
Number Date Text
-------- ------------ -----------------------------------------------
1 01-01-2013 bla bla bla
2 05-06-2013 ble ble ble :)
so, what i need is let the user to write directly in the gridview to change the values in grid or add new rows with new values.
(i already know how to add a new row and how to delete a selected row…so my need is: how to let the user edit/change values directly in the grid)
Can anyone help?
thanks.
Sure!
Just an FYI in 13.2 our next release which should come out in November the IGGridView will have a built in mechanism for editing cells.
However, b/c of the nature of how this grid was designed, you can pretty much do whatever you want. What I would do in this scenario is just simply create my own IGGridViewColumnDefinition and IGGridViewCell for editing.
http://help.infragistics.com/iOS/2013.1/?page=IGGridView_Configuring_Custom_Cell.html
http://help.infragistics.com/iOS/2013.1/?page=IGGridView_Column_Definitions.html
For your editing scenario, do you want to have your cell's always editable? Or would you prefer the user do something like DoubleTap on a cell to put the cell into edit mode?
If you let me know what you're looking for, we could put together a sample for you.
-SteveZ
Do you have any documentation that I can read on the built in mechanism for editing cells?
Hi Steve.
you are the best :) i'm calling you boss to give you an increase in you salary!
i have a grid like this (see image). The delete button process is done! when the user want to delete a row, first he have to select the row and then push the button "Delete" (it's working thanks to you help in another post)
The Add button is what i need help for...i'm thinking:
- when the user push the button "Add", insert a new row in the end of the grid (after the last record), the grid scroll to this last new row (position in this new row) and let the user to write in that line:
- When the user tap in a Date it opens a date pickerview and the user choose the date.
- When the user tap in the text field, he can write directly in the grid
- the first column it's automatic
After that he can confirm, because the button "Add" is now "Confirm" or he can cancel the insert because the button "Delete" is now "Cancel"
want do you think? It's possible?
Thanks for you help!