Populate Comboboxwith dependency of code product


Author
Message
Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216
yes, but my probleman is no this.

I modified my code for

        private void btnProjeto_Click(object sender, EventArgs e)
        {
            if (this.bdProjeto.ShowDialog() == DialogResult.OK)
            {
                prj_cod.Text = Convert.ToString(sysProjetoBO1.prj_cod);
                proj_eqp_nrow.Requery();
            }
        }
        private void proj_eqp_nrow_ListPopulating(MicroFour.StrataFrame.UI.ListPopulatingEventArgs e)
        {
            e.Parameters[0].Value = sysProjetoEquipamentoBO1.proj_eqp_nrow;
        }

In BO
        public void FillByProjetoEquipamentoGL(int nRowProjeto)
        {
            GoLiveGlobals.infoMessageBox(nRowProjeto.ToString());
            //this.FillDataTable("select * from tabproj_equipamento where prj_nrow = " + nRowProjeto);
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = String.Format("select * from tabproj_equipamento where prj_nrow = " + nRowProjeto, this.TableName);
            this.FillDataTable(cmd);
        }

In GoLiveGlobals.infoMessageBox(nRowProjeto.ToString()); return 0 ! Why ?


Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Rafael,

I think that you are inadvertantly making a very simple task very complex.  As mentioned in previous posts, there are a lot of samples that show how to do this...and I know that other developers have tried to help you understand as well.  Maybe at this point you should just create a simple sample illustrating your problem and post it out here instead of all of these posts as this doesn't really seem to be going anywhere.  Maybe a real sample from YOUR perspective and then a correction via the forum posters will help you better undertstand where you are going wrong.

Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216
I have a Example !

Eu preciso population a comboBox1 com o valor da  textbox1. O Meu problema é que eu preciso fazer um Select * from ProjetoEquipamento where prj_nrow = value of textbox1         . Como population combobox whith Select ?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search