473,385 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ExtendedDataGrid

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
Nov 20 '05 #1
7 1632
* "CJ Taylor" <no****@blowgoats.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #2

Inner Exception:
-----------------------------------------------------------
at Leadit.ExtendedDataGrid.ExtendedDataGridControl.se t_CellValue(Object
value)
at Leadit.ExtendedDataGrid.ExtendedDataGridControlCol umn.Paint(Graphics
g, Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush,
Brush foreBrush, Boolean alignToRight)" String

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

Outer Exception:

-------------------------------------------------------------
at Leadit.ExtendedDataGrid.ExtendedDataGridControlCol umn.Paint(Graphics g,
Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush,
Brush foreBrush, Boolean alignToRight)
at
System.Windows.Forms.DataGridRelationshipRow.Paint CellContents(Graphics g,
Rectangle cellBounds, DataGridColumnStyle column, Brush backBr, Brush
foreBrush, Boolean alignToRight)
at System.Windows.Forms.DataGridRow.PaintData(Graphic s 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(PaintEventAr gs pe)
at System.Windows.Forms.Control.PaintWithErrorHandlin g(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(M essage& m)
at System.Windows.Forms.NativeWindow.DebuggableCallba ck(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(IWin32Win dow 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.OnThreadExcepti on(Exception t)
at System.Windows.Forms.Application.OnThreadException (Exception t)
at System.Windows.Forms.ContainerControl.UpdateFocuse dControl()
at
System.Windows.Forms.ContainerControl.AssignActive ControlInternal(Control
value)
at System.Windows.Forms.ContainerControl.ActivateCont rolInternal(Control
control, Boolean originator)
at System.Windows.Forms.ContainerControl.SetActiveCon trolInternal(Control
value)
at System.Windows.Forms.ContainerControl.SetActiveCon trol(Control ctl)
at System.Windows.Forms.ContainerControl.set_ActiveCo ntrol(Control value)
at System.Windows.Forms.Control.Select(Boolean directed, Boolean forward)
at System.Windows.Forms.Control.SelectNextControl(Con trol ctl, Boolean
forward, Boolean tabStopOnly, Boolean nested, Boolean wrap)
at System.Windows.Forms.Form.ProcessTabKey(Boolean forward)
at System.Windows.Forms.ContainerControl.ProcessDialo gKey(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(Mes sage& msg)
at
System.Windows.Forms.ThreadContext.System.Windows. Forms.UnsafeNativeMethods+
IMsoComponent.FPreTranslateMessage(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(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


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c1*************@ID-208219.news.uni-berlin.de...
* "CJ Taylor" <no****@blowgoats.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>

Nov 20 '05 #3
Cor
Hi CJ,

Wow, you have given a bunch of information to Herfried.

I am glad you get help from Herfried with that.

I am also full curiosity watching his answer.

:-)

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

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

Cor

Nov 20 '05 #4
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" <no*@non.com> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
Hi CJ,

Wow, you have given a bunch of information to Herfried.

I am glad you get help from Herfried with that.

I am also full curiosity watching his answer.

:-)

Give some time to Herfried, otherwise you can maybe use this page from Jan.
http://weblogs.asp.net/jan/contact.aspx

Cor

Nov 20 '05 #5
* "Cor" <no*@non.com> scripsit:
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!).

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #6
Cor
> (I think its 19:00 his time, not sure though...)
Nov 20 '05 #7
Cor
HI CJ, I am sure
(I think its 19:00 his time, not sure though...)


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

Cor
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Lina | last post by:
Hi, Can anyone tell me if it is possible to add link buttons to a datagrid that has its source set to a datatable that i have created? i.e i want the user to be able to select a room from...
3
by: Alexia | last post by:
Hi, I have seen many articles where it is possible to add extra columns to a datagrid that allows the user to press a button and delete the row, etc. However i have not seen any articles like...
4
by: nick | last post by:
Anyone know if I can find components similar to extendeddatagrid for VS *2002*?
2
by: Andrew Donaldson | last post by:
Hi there, Long-time lurker, first-time poster: I'm working with the ExtendedDatagrid (http://dotnet.leadit.be/extendeddatagrid/) control to display a grid representing an array of objects...
3
by: Ahsan | last post by:
Hi there I am using datagrid with SQl server I wonder if its possible to create a command button on each row of the grid. Actually I want to open a new form on every button click with...
1
by: Robert Batt | last post by:
hello, I would like to add a rich text box to a datagrid. does anyone know of any code samples, or any other way where I can display a field in a datagrid and allow the user to click on it and enter...
2
by: Adam Nowotny | last post by:
http://dotnet.leadit.be/extendeddatagrid/ -- Adam Nowotny JID: daft@chrome.pl
0
by: Brett Sinclair | last post by:
Hello everybody do you know where I could find some sample code to use the ExtendedDatagrid from http://dotnet.leadit.be/extendeddatagrid/CategoryView.aspx?category=Latest%20News in vb.net ? ...
13
by: Michael Maes | last post by:
Hi, I have a UserControl containing some controls of which one is a ComboBox. All the InternalControls are Private and some are allowed to be accessed through Public Methods. One of the things I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.