On form load i want a select all text in a particular cell value.
Here is my code, and cell is editable by user
ugPayments.ActiveCell = ugPayments.Rows(i).Cells(4)
ugPayments.ActiveCell.Selected =
True
ugPayments.ActiveCell.SelectAll()
But it is throwing me an error saying
Operation cannot be performed when not in edit mode.
Unfortunately the picture doesn't really help. Are you using the code that I posted in an earlier reply? As I had mentioned, this code was working for me so either you are doing something differently in your application, or you're using an older version of NetAdvantage that had a bug that has been fixed in a newer version.
-Matt
The code is very simple. I have a ultragrid on form and I have one column editable by user. On form load I want to select the text that the cell has. Basically it is a Sales Receipt Payment Form. Cashier has to take payment. The picture will explain more, I believe
I can't really say what the problem is without more information, aside from the fact that that should only happen if the cell isn't in edit mode. The sample code I had attached for you was working correctly for me, so if you can give me the code, or attach a small sample, I could look into this further.
Need Help!
I am getting error as follows,
Can't access SelectionStart unless the Editor is in edit mode.
Thanks
Thanks that works. I appreciate your help