Hello All,I want to call cellExitEditMode method forcefully..?I am having grid in which I enabled cell edit (Text box). Once I click in cell it enters in edit mode, Now if I click a button which access cells value, it gives error.I think this is because cellExitmode in not called. Is any solution for this?Thanks in advance.. :)
Hi,
It is possible to explicitly make XamGrid to exit edit mode, are you asking how to do that ?
Could you provide a sample which demonstrates your issue with the cell value and the button?
Thanks,
Thanks for the reply.Yep, I want to exit edit mode explicitly. That button is in control which contains grid.If I click on cell then it enters edit mode, but if click on button (cursor is still in cell-which is in edit mode) cellExitEditMode should be called automatically.? Rt..? or How do I call it explicitly.
Stoimen Gerenski"] The ExitEditMode() parameter specified whether or not the value that has been edited should be discarded (true) or if you want to keep the changes (false).
The ExitEditMode() parameter specified whether or not the value that has been edited should be discarded (true) or if you want to keep the changes (false).
This really needs to be documented more clearly, but thanks.
HTH,
Hi Stoimen,Sorry for misguiding.Please consider this, UserControlRoot contains UserControl1 and UserControl2UserControl1 (UC1) contains Grid (i.e editable).UserControl2 (UC2) contains button (which is m clicking)So If I click on button which is in UC2 still UC1's grid's cellExitEditMode will be called..?One more XamGrid.ExitEditMode(false) in this what is mean by false? and what if I pass true..?Thanks,
You would need to call XamGrid.ExitEditMode(false)in order to make the XamGrid exit edit mode, although clicking outside the XamGrid (e.g. on a button) should cause exitting edit mode.