.net - Set the datetime style in ultragrid -


i have column datetime picker in ultragrid. have set minvalue , maxvalue datetime.

//code

            ultragridcolumn.header.caption = "start date"             ultragridcolumn.header.tooltiptext = "start date"             ultragridcolumn.hidden = true             ultragridcolumn.style = columnstyle.datetimewithspin 

i tried minvalue today , max value 1 year today. not working

//code

ultragridcolumn.minvalue = new datetime(datetime.now.year, datetime.now.month, datetime.now.day)  ultragridcolumn.maxvalue = new datetime(datetime.now.year + 1, datetime.now.month,datetime.now.day) 

you can set minvalue property on column itself:

' put min , max constraints on date column. datecolumn.minvalue = new datetime(1990, 1, 1) datecolumn.maxvalue = new datetime(2010, 12, 31) 

link minvalue documentation.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -