Board index » Visual Studio » dtpicker on grid

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


-
 

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:

Quote
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





-

Re:dtpicker on grid

"mr_unreliable" <kindlyReplyToNewsgroup@notmail.com>wrote in message

Quote
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.









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?









Quote
good luck, jw

____________________________________________________________



You got questions? WE GOT ANSWERS!!! ..(but,

no guarantee the answers will be applicable to the questions)







sali wrote:

>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

>



-