Combo Box
-
Hello The Code Project I need help on a project, i have an Access 2010 Database and i want to fill a combo box with one column named "Telephones" From a Table named "SIM" I've tryed so many ways but i dont know why i can't make it work Examples:
private void llenarElementos()
{cbo\_codsim.Items.Clear(); int filascod = base\_Gps\_InfoDataSet.Tables\["SIM"\].Rows.Count; for (int y = 0; y < filascod; y++) { cbo\_codsim.Items.Add(base\_Gps\_InfoDataSet.Tables\["SIM"\].Rows\[y\]\[1\].ToString()); } }
i'm calling that function on the form load.. Also i've tryed to do it by selecting the bindingsource and the table in VS but data don't appear. If you all need the full code just ask :) PD: VS 2008 SP1 Please Help :/
-
Hello The Code Project I need help on a project, i have an Access 2010 Database and i want to fill a combo box with one column named "Telephones" From a Table named "SIM" I've tryed so many ways but i dont know why i can't make it work Examples:
private void llenarElementos()
{cbo\_codsim.Items.Clear(); int filascod = base\_Gps\_InfoDataSet.Tables\["SIM"\].Rows.Count; for (int y = 0; y < filascod; y++) { cbo\_codsim.Items.Add(base\_Gps\_InfoDataSet.Tables\["SIM"\].Rows\[y\]\[1\].ToString()); } }
i'm calling that function on the form load.. Also i've tryed to do it by selecting the bindingsource and the table in VS but data don't appear. If you all need the full code just ask :) PD: VS 2008 SP1 Please Help :/
DJCRIS12 wrote:
I've tryed so many ways but i dont know why i can't make it work
When you say it's not working, what does that mean? it errors, or you get no data, or the combo box it's populating?
If it's not broken, fix it until it is
-
DJCRIS12 wrote:
I've tryed so many ways but i dont know why i can't make it work
When you say it's not working, what does that mean? it errors, or you get no data, or the combo box it's populating?
If it's not broken, fix it until it is