简体   繁体   中英

VB.NET or C#, silverlight datagrid binding

I am looking for a way to execute sql on a connection, (any sql command that return data) and then bind the result to silverlight datagrid, is there anyway of doing this,

I don't want to use strongly typed objects!

Regards

Use

dataGrid1.ItemsSource = new ItemsCollection();    

where ItemsSource inherits Collection<item>

Check this out: Different Ways to Bind Data Grid in Silverlight ,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM