SOLVED: EditOptions.Constraints |
Post Reply |
Author | |
eswohnai
Newbie Joined: 11 July 2008 Location: United Kingdom Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 11 July 2008 at 11:38am |
I have a Report Control where I need to fill a Combo with custom values.
If there is already one instance of a value on the Grid, when I go to a different row, and go into the Combo that item needs removing.
The way I was going to do it to call .EditOptions.Constraints.DeleteAll before repopulating the Constraints but this is removing all entries for my Column.
Does any one have any suggestions for getting around this?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Do you use CreateEditOption for a single cell? And use the InplaceButtonDown event to delete all constraints?
Can you upload a sample project?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
eswohnai
Newbie Joined: 11 July 2008 Location: United Kingdom Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Aaron, Thanks for your reply. Using the CreateEditOption seems to of done the trick bar one small problem. When I click into the Cell. Even if the text matchs what is in the constrait, it blanks the entry. If I select it from the drop down it is fine. As I don't know how to post a sample I will just copy all my current code below. You will need to add a Report Control to a form and call it grdSample. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
eswohnai
Newbie Joined: 11 July 2008 Location: United Kingdom Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I've now managed to work around this.
The work round was to the add the following routine.
Thanks for your help
>>>>>>>>>>>>>>>>>>>>>
Private Sub grdSample_ValueChanged(ByVal Row As XtremeReportControl.IReportRow, ByVal Column As XtremeReportControl.IReportColumn, ByVal Item As XtremeReportControl.IReportRecordItem)
On Error GoTo ERR_HANDLER If Column.Index = 1 Then Item.Caption = Item.EditOptions.Constraints(Item.Value).Caption End If Exit Sub ERR_HANDLER: MsgBox "Error in Form1.frm::Sub grdSample_ValueChanged: Error " & Err.Number & " - " & Err.Description End Sub |
|
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 |