DataGrid - show weekday in seperate column

R

Rudi Hausmann

Hi!

I have a column with a date.
In another column I want to show the weekday of this date.
I have following code:
<asp:BoundField DataField="myDate" HeaderText="WeekDay"
SortExpression="weekday" DataFormatString="{0:dddd}" HtmlEncode="False"
ApplyFormatInEditMode="True" />
<asp:BoundField DataField="myDate" HeaderText="Day"
SortExpression="weekday" DataFormatString="{0:d}" HtmlEncode="False"
ApplyFormatInEditMode="True" />
Is there a way to make WeekDay "bound" to Day? And of course WeekDay
should not be editable (using Template), but immediately show changes
within Day.

Regards,

Rudi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,231
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top