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.
ah, no problems here. please ignore my question
hi Steve,
Do you have an idea why if i change in your example the keyboard type for editing it would not just display the keyboard as NumericPad?
public class DateColumn : BaseColumn { UITextField _editor; public DateColumn(string key):base(key) { _editor = new UITextField (); _editor.KeyboardType = UIKeyboardType.NumberPad; }
Thank you
Mark
Check out the following post:
http://es.infragistics.com/community/forums/p/85302/428167.aspx#428167
There is a sample attached that shows the implementation of a custom editing.
If you don't want the double click action, simply set AllowEditing on the DataSourceHelper to false. Then you can attach your own cell gestures. In those gestures you can invoke the BeginEditing and EndEditing methods on the DataSourceHelper to enter and exit edit mode on a particular cell.
-SteveZ
Also looking to see if it's possible to remove the double click to edit feature.
Thanks, I've got the editable text field column going. I'm going to be building a fairly robust editable columns that would include "combo box" drop downs and "multi column combo box drop downs" Obviously, thru using a table view as my drop down. I'll also be building on some switches to my columns and date time pickers.
If you guys have some sample code on how to implement these custom editable column definitions, it should speed up my process.