Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Windows Vista, not Nullable Column and Date Choosing
posted

Hi.

I use NetAdvantage 2007.01.1071 

The problem with DateTime column (only Windows Vista).

When property Column.Nullable set to Infragistics.Win.UltraWinGrid.Nullable.Disallow and I choose today date from calendar,

say 23/12/2008, application crashes. It appeares, somthing is wrong with default Mask.

 Any other date, button 'today', choosing today date in non empty column works fine.

What can I do to solve the problem?

Thanks in advance.

 private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            e.Layout.Bands[0].Columns["PaymentDate"].Nullable = Infragistics.Win.UltraWinGrid.Nullable.Disallow;
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable dt = new DataTable();
                DataColumn dc;
                dc = new DataColumn("PaymentID", Type.GetType("System.Int32"));
                dt.Columns.Add(dc);
                dc = new DataColumn("PaymentDate", Type.GetType("System.DateTime"));
                dt.Columns.Add(dc);
                DataRow dr = dt.NewRow();
                dr["PaymentID"] = 1;
                dt.Rows.Add(dr);

                this.ultraGrid1.DataSource = dt;
            }
            catch
            {
            }
            finally
            {
            }
        }
    }

Parents
No Data
Reply Children