Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ailtom  
#1 Posted : Tuesday, June 23, 2015 1:53:13 PM(UTC)
ailtom

Rank: Newbie

Groups: Registered
Joined: 2/13/2015(UTC)
Posts: 4

Thanks: 1 times
hi, i'm trying igrid. currently i use vbalgrid. so in vbagrid i have the inEditMode method to detect if some cell is editing now. i use it in the form keydown event and detect if the user press ESCAPE, if nothing is in edit i close the form else i cancel the edit. how can i simulate this. thanks

Edited by moderator Monday, September 7, 2015 10:29:40 AM(UTC)  | Reason: Not specified

Igor/10Tec  
#2 Posted : Tuesday, June 23, 2015 3:47:35 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
iGrid does not have such a property, but you can use the value returned by the TextEditHwnd property to know whether iGrid is currently in edit mode. The value of this property is not zero if so.

The described method works only for text cells. In the general case, use another alternative solution. Set a Boolean flag that indicates editing in the RequestEdit event and then clear it in AfterCommitEdit and CancelEdit.
thanks 1 user thanked Igor/10Tec for this useful post.
ailtom on 6/23/2015(UTC)
ailtom  
#3 Posted : Tuesday, June 23, 2015 8:28:54 PM(UTC)
ailtom

Rank: Newbie

Groups: Registered
Joined: 2/13/2015(UTC)
Posts: 4

Thanks: 1 times
Originally Posted by: Igor/10Tec Go to Quoted Post
iGrid does not have such a property, but you can use the value returned by the TextEditHwnd property to know whether iGrid is currently in edit mode. The value of this property is not zero if so.

The described method works only for text cells. In the general case, use another alternative solution. Set a Boolean flag that indicates editing in the RequestEdit event and then clear it in AfterCommitEdit and CancelEdit.


thanks a lot. for to use this property solve my problem for a general propouse
Igor/10Tec  
#4 Posted : Tuesday, December 1, 2015 3:07:33 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
We've implemented a new dedicated property for that in iGrid ActiveX 6.0 - IsEditing.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.