in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Custom Editor Problem

Last post 02-15-2008 11:13 AM by PhilMurray. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-12-2008 5:31 AM

    Custom Editor Problem

    Hi All,

    I have a bound TrueDBGrid(V2.0.20072.61122) that displays a number of datetime values from a stored procedure which I would like to edit.

    The stored procedure returns datetime values that are converted from integer values that store the number of seconds from midnight.

    The problem I have is that when I bind the datetime values the grid will not allow me to edit the columns (does not fire the event), if I change the stored procedure to bring through the integer values it allows the edit with a time picker user control I have written and bound to the .Editor method

    Here is the code

    flexShiftPattern_Details.DataSource = m_Dataset_Shifts_Details.Tables(0)

    flexShiftPattern_Details.Splits(0).DisplayColumns(0).Visible = False

    For i As Int32 = 1 To flexShiftPattern_Details.Splits(0).DisplayColumns.Count - 1

        flexShiftPattern_Details.Columns(i).NumberFormat = "FormatText Event"

        flexShiftPattern_Details.Columns(i).EnableDateTimeEditor = False

        flexShiftPattern_Details.Columns(i).Editor = m_TimePicker

        flexShiftPattern_Details.Splits(0).DisplayColumns(i).AutoSize()

    Next

    Any help you can provide would be appreciated.

     

    Phil

    Filed under: , ,
  • 02-15-2008 11:13 AM In reply to

    Re: Custom Editor Problem

    Anyone....
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.