detect row.item
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=4131
Printed Date: 30 April 2025 at 6:24am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: detect row.item
Posted By: barianto
Subject: detect row.item
Date 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 , I'm curious is that CodeJock already have method to interrupt keyboard while row/record item in editing by user. As i want when "the evil / King" user enter "period" it turn into "comma" something like Microsoft excell behaviour, doesnt care what are regional setting it's computer have period will always change as comma. And there is something else i like to do. Or do i have to made my own :)?
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..
|
Replies:
Posted By: sserge
Date Posted: 05 May 2006 at 3:06pm
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
|
Posted By: barianto
Date Posted: 07 May 2006 at 3:08am
hi sserge
1. You'll have to compare values before and after editing.
See ValueChanging event (and NewValue parameter).
|
try your suggestion above, but it seem valuchanging and valuechanged event, fire only when the value is change :(
3. See PreviewKeyDown event and EditMode property.
EditMode = True if user edit item, and False otherwise.
|
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
|
Posted By: barianto
Date Posted: 12 May 2006 at 1:02am
anyone, pls.
Well i redifined what i need. How to denied user from type charater other than number (A,b,c, etc..) ?
|
Posted By: barianto
Date Posted: 12 May 2006 at 1:51am
try previewkeydown event. Not work!
|
Posted By: sserge
Date Posted: 12 May 2006 at 4:34pm
barianto wrote:
How to denied user from type charater other than number (A,b,c, etc..) ?
|
That's actually much easier than to make a custom filter 
Set Column = 'yourColumn Column.EditOptions.EditControlStyle = xtpEditStyleNumber
|
-- WBR, Serge
|
Posted By: barianto
Date Posted: 13 May 2006 at 3:50am
sserge wrote:
That's actually much easier than to make a custom filter 
Set Column = 'yourColumn Column.EditOptions.EditControlStyle = xtpEditStyleNumber
|
-- WBR, Serge
|
Yes, but it also denied point (.) and comma (,). Sad......
|
Posted By: barianto
Date Posted: 20 October 2006 at 5:29am
Sorry to bring this up again
In codejock 10.3.1 with :
Column.EditOptions.EditControlStyle = xtpEditStyleNumber can we input comma or period?
Thanks
|
Posted By: sserge
Date Posted: 21 October 2006 at 6:17pm
barianto wrote:
Sorry to bring this up again
In codejock 10.3.1 with :
Column.EditOptions.EditControlStyle = xtpEditStyleNumber can we input comma or period?
Thanks
|
Unfortunately no, it runs standard system text edit control with ES_NUMBER style, which doesn't work with commas or periods...
-- WBR, Serge
|
|