ExtendedDataGrid

  • Thread starter Thread starter CJ Taylor
  • Start date Start date
C

CJ Taylor

Has anyone had problems getting custom controls to work in Jan's Extended
Data Grid? I'm just tryin to amke a simple button column extension and keep
getting an exception on the paint.

Tried everything... anyone have some experience with this?

Thanks,
cJ
 
* "CJ Taylor said:
Has anyone had problems getting custom controls to work in Jan's Extended
Data Grid? I'm just tryin to amke a simple button column extension and keep
getting an exception on the paint.

What exception?
 
Inner Exception:
-----------------------------------------------------------
at Leadit.ExtendedDataGrid.ExtendedDataGridControl.set_CellValue(Object
value)
at Leadit.ExtendedDataGrid.ExtendedDataGridControlColumn.Paint(Graphics
g, Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush,
Brush foreBrush, Boolean alignToRight)" String

-------------------------------------------------------------

Outer Exception:

-------------------------------------------------------------
at Leadit.ExtendedDataGrid.ExtendedDataGridControlColumn.Paint(Graphics g,
Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush,
Brush foreBrush, Boolean alignToRight)
at
System.Windows.Forms.DataGridRelationshipRow.PaintCellContents(Graphics g,
Rectangle cellBounds, DataGridColumnStyle column, Brush backBr, Brush
foreBrush, Boolean alignToRight)
at System.Windows.Forms.DataGridRow.PaintData(Graphics g, Rectangle
bounds, Int32 firstVisibleColumn, Int32 columnCount, Boolean alignToRight)
at System.Windows.Forms.DataGridRelationshipRow.Paint(Graphics g,
Rectangle bounds, Rectangle trueRowBounds, Int32 firstVisibleColumn, Int32
numVisibleColumns, Boolean alignToRight)
at System.Windows.Forms.DataGrid.PaintRows(Graphics g, Rectangle&
boundingRect)
at System.Windows.Forms.DataGrid.PaintGrid(Graphics g, Rectangle
gridBounds)
at System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.MessageBox(HandleRef hWnd,
String text, String caption, Int32 type)
at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String
text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon,
MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
at System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text,
String caption, MessageBoxButtons buttons, MessageBoxIcon icon,
MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
at Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle
Buttons, Object Title)
at WindowsUI.Starter.ThreadException(Object sender,
ThreadExceptionEventArgs e) in C:\Projects\CDS\Kidder Music Rental Lease
v1.5\KMRentLease\WindowsUI\Starter.vb:line 116
at System.Windows.Forms.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Application.OnThreadException(Exception t)
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
at
System.Windows.Forms.ContainerControl.AssignActiveControlInternal(Control
value)
at System.Windows.Forms.ContainerControl.ActivateControlInternal(Control
control, Boolean originator)
at System.Windows.Forms.ContainerControl.SetActiveControlInternal(Control
value)
at System.Windows.Forms.ContainerControl.SetActiveControl(Control ctl)
at System.Windows.Forms.ContainerControl.set_ActiveControl(Control value)
at System.Windows.Forms.Control.Select(Boolean directed, Boolean forward)
at System.Windows.Forms.Control.SelectNextControl(Control ctl, Boolean
forward, Boolean tabStopOnly, Boolean nested, Boolean wrap)
at System.Windows.Forms.Form.ProcessTabKey(Boolean forward)
at System.Windows.Forms.ContainerControl.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at
System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+
IMsoComponent.FPreTranslateMessage(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WindowsUI.Starter.main() in C:\Projects\CDS\Kidder Music Rental Lease
v1.5\KMRentLease\WindowsUI\Starter.vb:line 101" String
 
Already contacted Jan, but don't know if he is checking messages right now
(I think its 7pm his time, not sure though...)

I hope he can, I really like this grid, and don't want to do my own
implementation of a button. =)

-CJ
 
* "Cor said:
Wow, you have given a bunch of information to Herfried.

I am glad you get help from Herfried with that.

Mhm... I never said that I would be able to help, but without any
information on the exception its even harder.
I am also full curiosity watching his answer.
LOL.

Give some time to Herfried, otherwise you can maybe use this page from Jan.

http://weblogs.asp.net/jan/contact.aspx

I would contact the author (and include the exception information!).
 
HI CJ, I am sure

I changed your message only and now it looks if I am not sure about that

Cor
 
Back
Top