R
Randall Parker
In ASP.Net v1.1 and C# suppose one has:
protected System.Web.UI.WebControls.DataGrid MyGrid;
In Page_Load I want to do the equivalent of:
MyGrid.Columns[MyDateColumnIndex].DataFormatString="{0:d}";
or
MyGrid.Columns[MyDateColumnIndex].DataFormatString="{0:g}";
depending on some user style flag that determines how much date/time details the user
wants to see.
But DataFormatString is not a field for the Columns[] array.
Is there a way to do this?
protected System.Web.UI.WebControls.DataGrid MyGrid;
In Page_Load I want to do the equivalent of:
MyGrid.Columns[MyDateColumnIndex].DataFormatString="{0:d}";
or
MyGrid.Columns[MyDateColumnIndex].DataFormatString="{0:g}";
depending on some user style flag that determines how much date/time details the user
wants to see.
But DataFormatString is not a field for the Columns[] array.
Is there a way to do this?