Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: ComboBox in Grid

$
0
0
Re: ComboBox in Grid
FoxInCloud
Re: ComboBox in Grid
04/24/2012
09:52:52 AM
3HJ0L6JDZ Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
you may need to set in your code
.BoundTo = .F.


After I adapt I have a combobox in a grid that no longer shows its value. The only change I can see is the combobox is now subclassed from pppcbo instead of combobox.

ADD OBJECT grdphone AS mba_bound_grid WITH ; ColumnCount = 6, ; Anchor = 240, ; ChildOrder = "", ; Height = 192, ; Left = 0, ; LinkMaster = "", ; Panel = 1, ; RecordMark = .T., ; RecordSource = "Agent_phone_idn", ; RecordSourceType = 1, ; RelationalExpr = "", ; RowHeight = 19, ; ScrollBars = 2, ; TabIndex = 7, ; Top = 0, ; Width = 429, ; HighlightStyle = 2, ; Name = "grdPhone", ; Column1.ControlSource = "Agent_phone_idn.PHONE_desc", ; Column1.Width = 89, ; Column1.Visible = .T., ; Column1.Name = "Column1", ; Column2.ControlSource = "Agent_phone_idn.phone", ; Column2.Width = 98, ; Column2.Sparse = .F., ; Column2.Visible = .T., ; Column2.Name = "Column2", ; Column3.ControlSource = "Agent_phone_idn.ext", ; Column3.Width = 51, ; Column3.Visible = .T., ; Column3.Name = "Column3", ; Column4.ControlSource = "Agent_phone_idn.type", ; Column4.Width = 75, ; Column4.Sparse = .F., ; Column4.Visible = .T., ; Column4.Name = "Column4", ; Column5.ControlSource = "Agent_phone_idn.primarynum", ; Column5.Width = 49, ; Column5.Sparse = .F., ; Column5.Visible = .T., ; Column5.Name = "Column5", ; Column6.ControlSource = "Agent_phone_idn.DNC", ; Column6.Width = 30, ; Column6.Sparse = .F., ; Column6.Visible = .T., ; Column6.Name = "Column6" ADD OBJECT alt_phone_agent.grdphone.column1.header1 AS header WITH ; Caption = "Desc", ; Name = "Header1" ADD OBJECT alt_phone_agent.grdphone.column1.text1 AS ppptxt WITH ; BorderStyle = 0, ; ControlSource = "Agent_phone_idn.PHONE_desc", ; Margin = 0, ; Visible = .T., ; ForeColor = RGB(0,0,0), ; BackColor = RGB(255,255,255), ; Name = "Text1" ADD OBJECT alt_phone_agent.grdphone.column2.header1 AS header WITH ; Caption = "Phone", ; Name = "Header1" ADD OBJECT alt_phone_agent.grdphone.column2.text1 AS ppptxt WITH ; BackStyle = 0, ; BorderStyle = 0, ; ControlSource = "Agent_phone_idn.phone", ; Format = "R", ; InputMask = "(###) ###-####", ; Margin = 0, ; SpecialEffect = 1, ; Visible = .T., ; ForeColor = RGB(0,0,0), ; BackColor = RGB(255,255,255), ; Name = "Text1" ADD OBJECT alt_phone_agent.grdphone.column3.header1 AS header WITH ; Caption = "Ext", ; Name = "Header1" ADD OBJECT alt_phone_agent.grdphone.column3.text1 AS ppptxt WITH ; BorderStyle = 0, ; ControlSource = "Agent_phone_idn.ext", ; Margin = 0, ; Visible = .T., ; ForeColor = RGB(0,0,0), ; BackColor = RGB(255,255,255), ; Name = "Text1" ADD OBJECT alt_phone_agent.grdphone.column4.header1 AS header WITH ; Caption = "Type", ; Name = "Header1" ADD OBJECT alt_phone_agent.grdphone.column4.o_combobox1 AS pppcbo WITH ; FontSize = 8, ; RowSourceType = 1, ; RowSource = "Home1,Home2,Office1,Office2,Cell,Fax,Pager,Snowbird", ; ControlSource = "Agent_phone_idn.type", ; SpecialEffect = 1, ; Visible = .T., ; Name = "o_combobox1" ADD OBJECT alt_phone_agent.grdphone.column5.header1 AS header WITH ; Caption = "Primary", ; Name = "Header1" ADD OBJECT alt_phone_agent.grdphone.column5.o_checkbox1 AS pppchk WITH ; Alignment = 0, ; Centered = .T., ; Caption = "", ; ControlSource = "Agent_phone_idn.primarynum", ; Visible = .T., ; Name = "o_checkbox1" ADD OBJECT alt_phone_agent.grdphone.column6.header1 AS header WITH ; Caption = "DNC", ; Name = "Header1" ADD OBJECT alt_phone_agent.grdphone.column6.check1 AS pppchk WITH ; Alignment = 0, ; Centered = .T., ; Caption = "", ; ControlSource = "Agent_phone_idn.DNC", ; Visible = .T., ; Name = "Check1"



-- thn (FoxInCloud)


Viewing all articles
Browse latest Browse all 10393

Trending Articles