T
TS
Hello, my project has a custom GridView control (inherited from GridView)
that uses TemplateFields to dynamically add controls based on meta data.
Since they aren't BoundFields I am now having to set DataFormatString on
each individual control but some controls dont have this option. For
DropDownList (and other ListControls) I have DataTextFormatString, but for
textbox and Label, etc i dont know how to set the format string.
for example, i have a textbox that when shown in read mode should show only
the date component of a datetime, so i want to do something like this
{0:MM/dd/yyyy} but dont know how
that uses TemplateFields to dynamically add controls based on meta data.
Since they aren't BoundFields I am now having to set DataFormatString on
each individual control but some controls dont have this option. For
DropDownList (and other ListControls) I have DataTextFormatString, but for
textbox and Label, etc i dont know how to set the format string.
for example, i have a textbox that when shown in read mode should show only
the date component of a datetime, so i want to do something like this
{0:MM/dd/yyyy} but dont know how