![]() |
detect row.item |
Post Reply ![]() |
Author | ||
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() Posted: 04 May 2006 at 5:16am |
|
Four question:
1. How to detect if one item in row/record collection (try) editing by user (requestedit) but leave it unchanged? 2. What is validate for in reportcontrol? 3. Since Codejock component seem to have so many method/properties that i haven't discovered yet ![]() ![]() Thnks before ps: i'm in Indonesia, where to get your extreme suite ActiveX Control in my country? I can't buy from internet/paypal or it's kind since i don't have the facility (MasterCard, VisaCard, etc). Pls inform.. |
||
![]() |
||
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
|
1. You'll have to compare values before and after editing.
See ValueChanging event (and NewValue parameter). 2. There are no such method in ReportControl. It looks for me that it is a generic method added for all imported ActiveX objects in your development environment. (See standard comment string to validate method) 3. See PreviewKeyDown event and EditMode property. EditMode = True if user edit item, and False otherwise. -- WBR, Serge |
||
![]() |
||
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
|
hi sserge
try your suggestion above, but it seem valuchanging and valuechanged event, fire only when the value is change :(
try this one too. When item not in edit mode it known key something like "46" or delete key (as in your sample) but for key like "A, B, C, D, so on or 1,2,3 so on or period, comma and so on" which i filter in previewkeydown event, instead doing what i program too, reportcontrol directly take it to edit mode. How to solve it with your reportcontrol? And what about to interrupt the key while in Edit Mode? Perhaps you can give me sample to make it's easier to understand Thank's |
||
![]() |
||
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
|
anyone, pls.
Well i redifined what i need. How to denied user from type charater other than number (A,b,c, etc..) ? |
||
![]() |
||
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
|
try previewkeydown event. Not work!
|
||
![]() |
||
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
|
That's actually much easier than to make a custom filter ![]()
-- WBR, Serge |
||
![]() |
||
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
|
Yes, but it also denied point (.) and comma (,). Sad...... |
||
![]() |
||
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
|
Sorry to bring this up again
In codejock 10.3.1 with : Column.EditOptions.EditControlStyle = xtpEditStyleNumbercan we input comma or period? Thanks |
||
![]() |
||
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
|
Unfortunately no, it runs standard system text edit control with ES_NUMBER style, which doesn't work with commas or periods... -- WBR, Serge |
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |