Thursday, 15 July 2010

c# - How to add datasource that will only generate 1 column -



c# - How to add datasource that will only generate 1 column -

i new asp.net , having troubles gridtable.

i have table column database named blogtitle, blogtext , blogdate , current result:

now want gather of them 1 column without header title can style them: more this:

as can see organize info 1 column each of row without header title.

current code:

<asp:gridview id="datafile" cssclass="datafileid" runat="server" > </asp:gridview>

server side:

var info = (from o in quack.blogs select new { o.blogtitle, o.blogtext ,o.blogdate}).tolist(); this.datafile.datasource = data; this.datafile.databind();

how can using gridview specify utilize 1 column utilize info pass on each row.

make utilize of repeater control.. help display output in single column. thanks!!

c# asp.net gridview

No comments:

Post a Comment