Jump to content

ListBox


Maradona101

Recommended Posts

Boas. Eu tenho uma ListBox preenchida com dados de uma tabela de uma base de dados. Quero que o utilizador possa escolher mais de 1 linha e a aplicação terá que guardar essas múltiplas escolhas noutra tabela. Acontece que não consigo ir buscar todas as linhas selecionadas.

foreach (String s in LBMedicamentos.Items)
		{
...
}

Estou a uitlizar o foreach mas diz me que não pode converter o conteúdo para string por Sytem.Row.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.