Jump to content

Data Grid View

Recommended Posts


Boas Pessoal,

Eu tenho de fazer um programa que me faça a pesquisa por nome, e depois de pesquisar por nome tenho de ir buscar os valores todos e passar-los para uma data grid view, mas o problema é que não sei como passar os valores da variavel que tenho com os valores e passar para a data grid...

Obrigado pessoal....

Share this post

Link to post
Share on other sites

DataGridView... É Dot Net, não é?

A DataGridView (GDV) aceita uma DataSource, que pode ser um DataSet, um DataTable e objectos tipo Collection (HashTable, Listas de objectos genéricos, etc).

The DataGridView  class supports the standard Windows Forms data-binding model. This means the data source can be of any type that implements one of the following interfaces:

    * The IList interface, including one-dimensional arrays.

    * The IListSource interface, such as the DataTable and DataSet classes.

    * The IBindingList interface, such as the BindingList<T> class.

    * The IBindingListView interface, such as the BindingSource class.

Fonte: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.datasource.aspx

Encontrei tb um artigo interessante para ti:

"101 Ways to Manipulate the DataGridView Control"

Fonte: http://www.devx.com/dotnet/Article/33748

Pedro Martins

Sharing is Knowledge!


Share this post

Link to post
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.