This is a migrated thread and some comments may be shown as answers.

Problem when using GridViewDateTimeColumn control On RadGridView

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
moti egol
Top achievements
Rank 1
moti egol asked on 22 Dec 2009, 09:47 AM

Hi,

We are interesting to by your software, for Winforms applications

I am in charging of testing your demo In my company,

After downloading your new controls

I am experience a problem while using the GridViewDateTimeColumn control On RadGridView

On adding a new row and  binding data source, the GridViewDateTimeColumn is set on data 1/1/1900.

I want to change the GridViewDateTimeColumn to default to DateTime.Now. when the row is bounded

When changing on the GridViewDateTimeColumn the value of the Date the colum is edited but

When binding the data on  the RadGridView control the Data is run over and sets to default 1900 or sometimes to 1/1/0001

Can you help me to resolve this problem.

Thank’s a head

M.E.

Software Engineer
Advantech

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 22 Dec 2009, 10:03 AM
Hi moti egol,

Thank you for contacting us. You can use the event DefaultValuesNeeded to provide the default values for the new rows. In your code, you will assign the DateTime.Now time to the correct cell. I am not exactly sure that I understand the second part of your question. Can you elaborate a bit on that? Thank you for your time.

Greetings,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
moti egol
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or