DataGrid mouseover selecting
Posted: Mon Nov 23, 2009 5:08 pm
I'll describe the effect that I want and hopefully someone here can point me to the code to modify or has some ideas for me. I've tried several things so far to no avail...
I have a DataGrid form, where each entry has a bunch of text, and some buttons. With every entry displaying all their buttons, it looks extremely cluttered and difficult to use. What I want to do is have the buttons only be visible on the item that actually matters at the moment.
The above is actually very easy to do if the "auto hilite" property of the DataGrid is set to true, because I'll get the dgHilite setprop call, and I can hide or show the buttons based on the pBoolean value passed in. But, I don't want to set this to true. Instead, I'd rather just use mouseMove and hide/show the buttons immediately based on which entry the user is looking at. Also, I don't want to hilite the selected form row for various reasons that are important and I'd rather not get into.
Now, I've tried using mouseEnter and similar events within the row template for the form, but none of those events seem to trigger. If I knew where dgHilite was getting called from I'd add some more code in there to possibly do what I want. Or perhaps there's another way that's better.
Ideas anyone?
Thanks!
Jeff M.
I have a DataGrid form, where each entry has a bunch of text, and some buttons. With every entry displaying all their buttons, it looks extremely cluttered and difficult to use. What I want to do is have the buttons only be visible on the item that actually matters at the moment.
The above is actually very easy to do if the "auto hilite" property of the DataGrid is set to true, because I'll get the dgHilite setprop call, and I can hide or show the buttons based on the pBoolean value passed in. But, I don't want to set this to true. Instead, I'd rather just use mouseMove and hide/show the buttons immediately based on which entry the user is looking at. Also, I don't want to hilite the selected form row for various reasons that are important and I'd rather not get into.
Now, I've tried using mouseEnter and similar events within the row template for the form, but none of those events seem to trigger. If I knew where dgHilite was getting called from I'd add some more code in there to possibly do what I want. Or perhaps there's another way that's better.
Ideas anyone?
Thanks!
Jeff M.