I'm making some webparts for myself and I want to populate SPGridview with some data.
DataTable table = /*some data*/;
SPGridview grid = new SPGridview();
// setting up SPGridview properties
grid.DataSource = table;
grid.DataBind();
When I did that with GirdView it worked just fine. But when I tried to do that with SPGridview my webpart shows just blank page. I suppose that SPGridview need a little more from my side and if you could give me tip how to do it.