Board index » Visual Studio » dtpicker on grid
|
smallltalkdan
|
|
smallltalkdan
|
dtpicker on grid
Visual Studio55
is it common to have dtpicker control on grid field? according to ms datagrid column, i may have number, date, ckeckbox etc as column formatting, but for date input, dtpicker would be just fine. do i need some other control [3rd party] or vb6 may support this as well? thanks - |
| mr_unreliable
Registered User |
Mon Jul 25 16:07:03 CDT 2005
Re:dtpicker on grid
hi sali,
The dtpicker, like most other controls has a parent, and a geometry (i.e., left, top, width and height -- although I'm not sure that it pays any attention to the wd&ht). If you create the control, and then make it's parent the grid control, then the left and top coordinates will be RELATIVE TO THE GRID. So, you "could" position the dtp control where you want it. As far as taking the user date selection and placing that value into your grid cell, that may take some code. I can't think of any auto-magic way to do that. And if you have an entire column of dates, then that would get even more tricky. You would need an array of dtp controls, or else some code to re-position a single dtp where ever the user went, and then more code to place the date selected into the appropriate cell. good luck, jw ____________________________________________________________ You got questions? WE GOT ANSWERS!!! ..(but, no guarantee the answers will be applicable to the questions) sali wrote: Quoteis it common to have dtpicker control on grid field? |
| sali
Registered User |
Tue Jul 26 01:46:25 CDT 2005
Re:dtpicker on grid
"mr_unreliable" <kindlyReplyToNewsgroup@notmail.com>wrote in message
Quotehi sali, well, this gives me the idea to use grid cells just as *placeholders* for really active editing controls and to use grid just as navigating device. parallely to this "visible" grid i then need same sized matrix containing infos about each grid cell and describing type of control to activate uppon cell gotting focus. right? Quotegood luck, jw |
