if you are using a BoundColumn control within your gridview you should be able to use the following method to help you: DataFormatString="{0:MM/dd/yyyy}".
S
SeanKuehnel
@SeanKuehnel
Posts
-
How to display day month year only in datatable column -
error BindingSource.current using linq [modified]Hi, The context of which you are using to try and get the customerId is incorrect, the reason is because the current item that you are trying to get data from is an anonymous type. This type doesn't have any default members like the exception states. Unfortunately, I don't have any exact support for this sample code you put, but if you were using a real type (even if you made the type yourself using a custom class) you could typecast the item contained in MyBindingSource.Current to retrieve the data from it correctly. hope this helps