in Windows appn... by using its datasource property
http://www.techrepublic.com/article/include-data-in-aspnet-pages-with-data-binding/