Asp.net bind datatable to gridview

I know how to bind a simple datatable to a gridview, but this is a different scenario (I think). I am calling a class library dll which returns a class. I can say its kind of list.I will call it like,\[code\]Dim demo = New ABCDataTable()demo = demo.GetTheDataTable(MyConnectionString)GridView1.DataSource = demoGridView1.DataBind()\[/code\]Question: How do I bind this to gridview in a markup file? Which datasource control I have to use?
 
Back
Top