Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - cell edit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

cell edit

 Post Reply Post Reply
Author
Message
Albert1 View Drop Down
Groupie
Groupie
Avatar

Joined: 01 February 2007
Location: Italy
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albert1 Quote  Post ReplyReply Direct Link To This Post Topic: cell edit
    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)

Back to Top
Albert1 View Drop Down
Groupie
Groupie
Avatar

Joined: 01 February 2007
Location: Italy
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albert1 Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.