Select * from Produto where code_product = textbox_code_product
private void prj_cod_Leave(object sender, EventArgs e){sysProjetoEquipamentoBO1.FillDataTable("SELECT * FROM tabproj_equipamento WHERE prj_nrow = " + sysProjetoBO1.prj_nrow);}
{
sysProjetoEquipamentoBO1.FillDataTable("SELECT * FROM tabproj_equipamento WHERE prj_nrow = " + sysProjetoBO1.prj_nrow);
}
but he did not give certain. I have a field sysProjetoBO1.prj_cod and sysProjetoBO1.prj_nrow in the same table. I need to show prj_cod and populate combobox for the code sysProjetoBO1.prj_nrow. Combobox populated is sysProjetoEquipamentoBO1.prj_nrow!
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.
http://forum.strataframe.net/FindPost14556.aspx
http://forum.strataframe.net/FindPost12211.aspx
http://forum.strataframe.net/FindPost14538.aspx
http://forum.strataframe.net/FindPost16492.aspx
In BO
in Form
What it is made a mistake?
In Portuguese
Eu preciso do valor sysProjetoBO1.prj_nrow na Value member do sysProjetoEquipamentoBO da propriedade PopulationDataSourceSettings. Como eu faço isso ?
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.