This question is locked. New answers and comments are not allowed.
Hi,
How can I have just the date part of a date in this code when adding a new column ?
Because actually I see the date and the hour
How can I have just the date part of a date in this code when adding a new column ?
Because actually I see the date and the hour
| Telerik.Windows.Controls.GridViewDataColumn gvdc = new Telerik.Windows.Controls.GridViewDataColumn(); |
| if (FrenchCaption != "") |
| gvdc.Header = FrenchCaption; |
| else |
| gvdc.Header = EnglishCaption; |
| gvdc.IsVisible = IsVisible; |
| gvdc.IsReadOnly = IsReadOnly; |
| if (Width != -1) |
| gvdc.Width = Width; |
| gvdc.SortingState = SortingState; |
| if (IsGroupped) |
| if (SortGroupBy != null) |
| GridView.GroupDescriptors.Add(new GroupDescriptor() { DisplayContent = BindingPath, Member = BindingPath, SortDirection = SortGroupBy }); |
| else |
| GridView.GroupDescriptors.Add(new GroupDescriptor() { DisplayContent = BindingPath, Member = BindingPath }); |
| gvdc.DataMemberBinding = new System.Windows.Data.Binding(BindingPath); |
| GridView.Columns.Add(gvdc); |