473,836 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ExtendedDataGri d

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 1651
* "CJ Taylor" <no****@blowgoa ts.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.Extended DataGrid.Extend edDataGridContr ol.set_CellValu e(Object
value)
at Leadit.Extended DataGrid.Extend edDataGridContr olColumn.Paint( Graphics
g, Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush,
Brush foreBrush, Boolean alignToRight)" String

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

Outer Exception:

-------------------------------------------------------------
at Leadit.Extended DataGrid.Extend edDataGridContr olColumn.Paint( Graphics g,
Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush,
Brush foreBrush, Boolean alignToRight)
at
System.Windows. Forms.DataGridR elationshipRow. PaintCellConten ts(Graphics g,
Rectangle cellBounds, DataGridColumnS tyle column, Brush backBr, Brush
foreBrush, Boolean alignToRight)
at System.Windows. Forms.DataGridR ow.PaintData(Gr aphics g, Rectangle
bounds, Int32 firstVisibleCol umn, Int32 columnCount, Boolean alignToRight)
at System.Windows. Forms.DataGridR elationshipRow. Paint(Graphics g,
Rectangle bounds, Rectangle trueRowBounds, Int32 firstVisibleCol umn, Int32
numVisibleColum ns, Boolean alignToRight)
at System.Windows. Forms.DataGrid. PaintRows(Graph ics g, Rectangle&
boundingRect)
at System.Windows. Forms.DataGrid. PaintGrid(Graph ics g, Rectangle
gridBounds)
at System.Windows. Forms.DataGrid. OnPaint(PaintEv entArgs pe)
at System.Windows. Forms.Control.P aintWithErrorHa ndling(PaintEve ntArgs e,
Int16 layer, Boolean disposeEventArg s)
at System.Windows. Forms.Control.W mPaint(Message& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.SafeNativ eMethods.Messag eBox(HandleRef hWnd,
String text, String caption, Int32 type)
at System.Windows. Forms.MessageBo x.ShowCore(IWin 32Window owner, String
text, String caption, MessageBoxButto ns buttons, MessageBoxIcon icon,
MessageBoxDefau ltButton defaultButton, MessageBoxOptio ns options)
at System.Windows. Forms.MessageBo x.Show(IWin32Wi ndow owner, String text,
String caption, MessageBoxButto ns buttons, MessageBoxIcon icon,
MessageBoxDefau ltButton defaultButton, MessageBoxOptio ns options)
at Microsoft.Visua lBasic.Interact ion.MsgBox(Obje ct Prompt, MsgBoxStyle
Buttons, Object Title)
at WindowsUI.Start er.ThreadExcept ion(Object sender,
ThreadException EventArgs e) in C:\Projects\CDS \Kidder Music Rental Lease
v1.5\KMRentLeas e\WindowsUI\Sta rter.vb:line 116
at System.Windows. Forms.ThreadCon text.OnThreadEx ception(Excepti on t)
at System.Windows. Forms.Applicati on.OnThreadExce ption(Exception t)
at System.Windows. Forms.Container Control.UpdateF ocusedControl()
at
System.Windows. Forms.Container Control.AssignA ctiveControlInt ernal(Control
value)
at System.Windows. Forms.Container Control.Activat eControlInterna l(Control
control, Boolean originator)
at System.Windows. Forms.Container Control.SetActi veControlIntern al(Control
value)
at System.Windows. Forms.Container Control.SetActi veControl(Contr ol ctl)
at System.Windows. Forms.Container Control.set_Act iveControl(Cont rol value)
at System.Windows. Forms.Control.S elect(Boolean directed, Boolean forward)
at System.Windows. Forms.Control.S electNextContro l(Control ctl, Boolean
forward, Boolean tabStopOnly, Boolean nested, Boolean wrap)
at System.Windows. Forms.Form.Proc essTabKey(Boole an forward)
at System.Windows. Forms.Container Control.Process DialogKey(Keys keyData)
at System.Windows. Forms.Form.Proc essDialogKey(Ke ys keyData)
at System.Windows. Forms.Control.P rocessDialogKey (Keys keyData)
at System.Windows. Forms.Control.P rocessDialogKey (Keys keyData)
at System.Windows. Forms.TextBoxBa se.ProcessDialo gKey(Keys keyData)
at System.Windows. Forms.Control.P reProcessMessag e(Message& msg)
at
System.Windows. Forms.ThreadCon text.System.Win dows.Forms.Unsa feNativeMethods +
IMsoComponent.F PreTranslateMes sage(MSG& msg)
at
System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth o
ds+IMsoComponen tManager.FPushM essageLoop(Int3 2 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
at WindowsUI.Start er.main() in C:\Projects\CDS \Kidder Music Rental Lease
v1.5\KMRentLeas e\WindowsUI\Sta rter.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****@blowgoa ts.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******** ******@TK2MSFTN GP12.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
1746
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 various comboboxes and textboxes on my form. when they are satisfied they press OK. the row is then displayed in my datagrid. I now automaticcaly want 2 link buttons to appear next to the row that allows the user to delete the row or edit it.
3
1049
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 this for a windows form datagrid!!! Is it possible to do it for a windows datagrid?
4
1261
by: nick | last post by:
Anyone know if I can find components similar to extendeddatagrid for VS *2002*?
2
2984
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 I've created. In the form below the datagrid is displayed with the correct columns, and the correct data (as added at the bottom of the code with my
3
3550
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 differnt values. Thanks in advance.
1
3867
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 a large amount of text, without the datagrid showing all the text in the grid. Thanx in advance Robert
2
1705
by: Adam Nowotny | last post by:
http://dotnet.leadit.be/extendeddatagrid/ -- Adam Nowotny JID: daft@chrome.pl
0
929
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 ? Thank you
13
5351
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 would like to do (of course) is set the DataBindings. Something clearly is wrong with the approach I use, because I can't set the Properties in the Designer, the DataSource-Property appears like 'ReadOnly', there is no "dropdown" with the list from...
0
10819
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10526
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10570
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10240
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5641
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5811
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.