Print Page | Close Window

cell edit

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=17214
Printed Date: 04 July 2025 at 12:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: cell edit
Posted By: Albert1
Subject: cell edit
Date Posted: 07 September 2010 at 6:35am
Is there a way to get the value of the cell being edited? I try to explay what I wish:
 
Lets try the CJ's ReportSample.vbp.
 
Execute it and choose "Additional Samples", "Task List Sample". In the first row modify the Due Date: go edit mode (F2 or click on the first char) and modify to 01/01/2003 (without hit enter key). When you click on inplace button (or Alt+Down Arrow) it will pop-up the calendar. The day selected is 12/12/2003 and not 01/01/2003. Thats why the Button.Item.Value is the previous one. It's not correct ...
 
You can have the requested value only in the InplaceEditChanging event (NewValue parameter). Is there another way?
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0

Platform: Windows Vista (32bit) - SP 2

Language: Visual Basic 6.0 (SP6)




Replies:
Posted By: Albert1
Date Posted: 07 September 2010 at 7:55am
PARTIALLY SOLVED:
 
Inside the InplaceEditChanging I set a code like this:

Private Sub ReportControl_InplaceEditChanging(...)
    If Not Cancel Then
        Item.Tag = NewValue
    End If
End Sub
 
so I can access what I need with Button.Item.Tag (instead of Button.Item.Value).
 
I would suggest CJ to implement an appropriate property:
 

EditText Property
Returns or sets the text in the cell editor.
Syntax
[form!]VSFlexGrid.EditText[ = value As String ]
Remarks
The EditText property allows you to read and modify the contents of the cell editor while it is active.
 


-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0

Platform: Windows Vista (32bit) - SP 2

Language: Visual Basic 6.0 (SP6)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net