Hi!
I'm new to this and trying to find my way throu C# and Infragistics.
I now have the problem, that I would like to implement a color selection within one cell of my ultragrid.
Is there a possibility to do this? I could not find anything but I'm quite shure that there is some sort of solution to this.
I'd like to select from a colorselection and store the color as numerical value within my database.
Cheers,
Salgerion
Hi Jaco,
I was able to reproduce the issue using the sample you provided. I have tested using the latest built and the issue was fixed. Please download the latest service pack and test using it.
Magued
I have created a case based on the forms discussion and sent you an email regarding it.
Hi Mike,
I've attached a sample project (VS2008).
When you run the sample, resize the form to something other than full screen and select a color, it works fine. Resize it to fullscreen and you will find the error.
NOTE:
I found that it happens once I add a ribbon to the form.
Can you reproduce this in a small sample project and post it here? If the code is raising an exception in tabbedColorPicker_MouseUpOnColor, then that's probably not something in your application, it's probably a bug.
I am doing exactly as you stated (see code below) but it does not work for me. I am using VB.net instead of C# as per the first post.
My problem is that when I want to retrieve the value from the unbound "selectColor" cell, the value is always zero (0) :. (color.black), asif the cell value has not been updated with the selected value from the color picker.
Am I missing anything?
InitializeLayout:
band0.Columns("dbColor").Hidden = true 'integer column
If Not band0.Columns.Exists("selectColor") Then band0.Columns.Add("selectColor")band0.Columns("selectColor").Style = ColumnStyle.Colorband0.Columns("selectColor").DataType = GetType(System.Drawing.Color)
InitializeRow:
e.Row.Cells("selectColor").Value = ColorTranslator.FromWin32(e.Row.Cells("dbColor").Value)
BeforeRowUpdate:
e.Row.Cells("ptsColor").Value = ColorTranslator.ToWin32(e.Row.Cells("selectColor").Value)
/Updated
I now understand what causes the problem, however, I do not understand why. When I maximize the application (1680 X 1050 resolution), this problem occurs. When I do the exact same steps in a smaller sized form, it does not happen!?!?
This is the error it throws
at Infragistics.Win.ColorPickerEditor.tabbedColorPicker_MouseUpOnColor(Object sender, MouseEventArgs e) at Infragistics.Win.TabbedColorPicker.SubControl_MouseUp(Object sender, MouseEventArgs e) at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ListBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at ArchiTech.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Do you perhaps have any explanation or work-around for this?