Need help with grid
I am trying to create 2 columns. One column will carry the users details..Avatar and user name..the other column will carry the users comments. Problem is that I dont know how to insert 2 controls into a gridview row..(Hyperlink with users name and开发者_运维知识库 avatar). Here is what i have so far. I am not sure that it is right
TableCell cell = new TableCell();
GridView1.Rows[0].Cells.Add(cell);
GridView1.Rows[0].Cells[0].Controls.Add(ddl);
the DataTable known nothing about the UI control you will use to show the data. in the aspx page you can configure the GridView to have templated columns then in the ItemTemplate definition you can put all controls you want and set their bindings using the appropriate aspx based syntax.
精彩评论