Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Adding Constraints to Record Items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Constraints to Record Items

 Post Reply Post Reply
Author
Message
gopalreddy_g View Drop Down
Newbie
Newbie


Joined: 02 May 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote gopalreddy_g Quote  Post ReplyReply Direct Link To This Post Topic: Adding Constraints to Record Items
    Posted: 31 July 2009 at 2:07pm
Hi
 
I have a column with editoptions and want to add different editoptions constraints to reportrecorditem  for each record. I am getting object null reference error while doing this. Here i am providing the code. Please do help me how to overcome the error. I tried the sample tasklist program and got the same error.
 
 
Adding columns:

column = AxReportControl1.Columns.Add(Column_AssignedTo, "Assigned To", 50, True)

column.Editable = False

For I As Integer = 0 To _DTUsers.Rows.Count - 1

column.EditOptions.Constraints.Add(_DTUsers.Rows(I)("UserName") & " - " & _DTUsers.Rows(I)("UserID"), _DTUsers.Rows(I)("ID"))

Next

column.EditOptions.ConstraintEdit = True

column.EditOptions.AddComboButton()

column.EditOptions.GetInplaceButton(0).InsideCellButton = True

Adding records:
 
Item = Record.AddItem(AssignedTo)

For Each row As DataRow In _DTUsers1.Rows

Item.EditOptions.Constraints.Add(row("UserName") & " - " & row("UserID"), row("ID"))

Next

Please help me in this regard.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2009 at 9:02pm
What do you mean about TaskList Sample? You did not see picklists?
 
I already answer on such question - https://forum.codejock.com/forum_posts.asp?TID=14664
 
Essentially with your code you are assigning picklist items to column-base (common for all items) picklist
 
If you want to use individual picklist for specific item - use NULL param:

 

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.203 seconds.