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 ?
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.
I modified my code for
In GoLiveGlobals.infoMessageBox(nRowProjeto.ToString()); return 0 ! Why ?
I noticed you have this code:
But, your FillByProjetoEquipamentoGL(Int32) is expecting an Integer and the prj_cod.Text is string, so you have to make sure the value of the prj_cod.Text is an Integer, so you need to convert it using cint() or the equivalent C## function.
In Portuguese
Eu preciso do valor sysProjetoBO1.prj_nrow na Value member do sysProjetoEquipamentoBO da propriedade PopulationDataSourceSettings. Como eu faço isso ?
In BO
in Form
What it is made a mistake?
http://forum.strataframe.net/FindPost14556.aspx
http://forum.strataframe.net/FindPost12211.aspx
http://forum.strataframe.net/FindPost14538.aspx
http://forum.strataframe.net/FindPost16492.aspx
Second, you will want to set the combo being populated to populate Manual instead of FormLoad because you are going to want to first ensure that your dependent code is set.
Third, once you have created a Fill method and setup the PopulationDataSourceSettings to use that fill method on the Combo, then you will want to handle the ListPopulating event to provide the value from the dependent code.
Finally, there are a TON of samples on this. This is an extremely common task done within the framework. There are samples that come with the framework showing how to do this, you can look at the StrataFlix sample, or just search on the ListPopulating event within the forum and you will find a LOT of samples.