i want use space inside string, i use this code:
var lst = Article.Select(a => new {a.ID, Name = " " + a.Name}).ToList();
gv.DataSource = lst.ToList();
gv.DataBind();
but its not working, with this code display name = " "Name.
and use this code:
var lst = Article.Select(a => new {a.ID, Name = " " + a.Name}).ToList();
gv.DataSource = lst.ToList();
gv.DataBind();
and with this code display name = " "Name.
please help me
Edit:
<asp:GridView ID="gv" runat="server" AutoGenerateColumns="false">
<Columns>
...
<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" ItemStyle-Width="300px" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
...
</asp:GridView>
Edit2:
Answer:
Thank you to all.