Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
5040 | Jun 16,2003 06:16 PM UTC | Jun 17,2003 04:37 PM UTC | WinForms | 7 |
![]() |
Tags: GridControl |
gbcc["RequiredDate"].StyleInfo.Format = "d";
gbcc["RequiredDate"].StyleInfo.CellValueType = typeof(DateTime);
If setting the CellValueType does not handle the problrm, can you attach a sample? ds.Tables[sName].Rows[0][3] = DateTime.Now;
to set one of the field to a DateTime value.
The DataView.RowFilter is failing in this situation. If you replace the grid with a DataGrid and just try to apply the DataView.RowFilter there as well, it also fails in this same situation.
I think it is rthe milliseconds that is causing the problem. Instead of the code above, if I use this code to set the value (with zero milliseconds), things work OK.
DateTime dt = DateTime.Now; ds.Tables[sName].Rows[0][3] = new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second, 0);We will look into what can be done to avoiod this problem.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.