nero_lux Posted October 9, 2009 at 05:11 PM Report Share #290909 Posted October 9, 2009 at 05:11 PM Boa Tarde, mais uma vez estou com um pequeno problema, não consigo popular a minha Grid. Ele cria as respectivas linhas na minha Grid mas sem os valores e as respectivas colunas. O que estou a fazer de errado? Tenho o seguinte código: DataGrid.ItemsSource = ObterDataView(); Link to comment Share on other sites More sharing options...
bruno1234 Posted October 9, 2009 at 06:53 PM Report Share #290939 Posted October 9, 2009 at 06:53 PM Se cria as linhas e n mostra valores é pq os valores aos quais estás a fazer o bind estão todos a null. Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
nero_lux Posted October 9, 2009 at 07:25 PM Author Report Share #290946 Posted October 9, 2009 at 07:25 PM Os valores não estão a null. Tenho que ter alguma referência no WPF, ou seja, tenho que ter um Binding, ou algo semelhante? Link to comment Share on other sites More sharing options...
bruno1234 Posted October 9, 2009 at 07:26 PM Report Share #290948 Posted October 9, 2009 at 07:26 PM Sim, a grid precisa ter o binding especificado. Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
nero_lux Posted October 9, 2009 at 08:23 PM Author Report Share #290956 Posted October 9, 2009 at 08:23 PM Desculpa mas não percebi. Pensei visto estar associar a DataView por código ao ItemsSource, que não precisava de mais nada. Link to comment Share on other sites More sharing options...
bruno1234 Posted October 9, 2009 at 08:55 PM Report Share #290963 Posted October 9, 2009 at 08:55 PM http://social.msdn.microsoft.com/Forums/en/wpf/thread/fee1fb57-d6f7-4233-ba7e-5baf1095865f Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
nero_lux Posted October 12, 2009 at 09:50 AM Author Report Share #291321 Posted October 12, 2009 at 09:50 AM Obgrigado pela ajuda! Já está resolvido. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now