OK 'pologies all.
It turned out that I WAS being stupid :)
My Orders were actually in January and I was looking in February - so date comparison in Linq DOES work just fine!
User Profile
Collapse
-
Date comparison not working in LINQ?
Hi
I've got the following function:
...Code:public static List<Order> FilterByDateRange(List<Order> _list,string _sdate, string _edate) { if (_list.Count == 0) return null; DateTime _start = Convert.ToDateTime(_sdate); string[] _ed = _edate.Split(' '); string _edate2 = _ed[0] + " 23:59:59"; DateTime _end = Convert.ToDateTime(_edate2); -
vb.net context menu not rendering correctly?
WHen creating menus, including the context menu, there is a blank 'entry' at the bottom of the menu where you can insert new menu items. When running the application, normal menus display correctly, but the context menu always has a blank area the size of a blank entry at the bottom of the menu - regardless of what height I give the menu.
Anyone know how to get rid of this blank entry? -
Sorry, I did not understand that?
I found some a method elsewhere which is as follows:
...Code:Private Sub DataGridView1_CellMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseClick Dim rect As Rectangle rect = DataGridView1.CurrentCell.GetContentBounds(e.RowIndex) MsgBox(rect.XLeave a comment:
-
How to display popup menu in grid cell?
I have a DataGridView control, and I need some code to implement a function where a user left-clicks on a specific cell and a context-menu is displayed with it top-lef corner in the centre of the clicked cell - the left-click should also select the row itself.
No activity results to display
Show More
Leave a comment: