Hi All! Just a quick one how do I display two columns from my db into one column on the Datagrid. Eg First Name and Last Name under User header (I'm using <asp:BoundColumn DataField etc) a quick reply would be great! Thanks :)
Hello, the best way I know for displaying custom fields in a datagrid is to convert the column that you want modified into a Template Column. Then, you can apply a template to the data that gets bound to that column. For instance, in the case of concatenating
the first and last name, you could do something like this:
<asp:Label Runat="server" ID="lblName" Text='
This should allow you to bind the data to the datagrid and display the first name and last name in the same column. As far as i know it is not possible with but if it´s possible i would like to
know how... HTH,
steo009
Member
170 Points
34 Posts
quick question on Datagrid Column
Aug 07, 2003 08:27 AM|LINK
KBrocksi_SEC
Contributor
3382 Points
627 Posts
Re: quick question on Datagrid Column
Aug 07, 2003 10:40 AM|LINK