custom datagrid

  • Thread starter Thread starter Josh Booth
  • Start date Start date
J

Josh Booth

Hi,

Im trying to develop a custom datagrid control that works in the form layout
tool (design time) and implements things such as looking up its own column
widths at runtime. But I cant seem to get the datagrid to work at design
time although I was able to sublcass other controls such as button without
too much trouble. Has anyone managed to do this with DataGrid?

regards
Josh
 
Have you created a "design time" build of your datagrid control? You
should change the designerattribute to point to ControlDesigner (in
System.CF.Design). Using the existing gridcontrol designer will likely
cause a cast exception.

-Ben

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Josh Booth" <[email protected]>
| Subject: custom datagrid
| Date: Fri, 18 Jul 2003 09:02:13 +1000
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 210.9.240.138
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:28508
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi,
|
| Im trying to develop a custom datagrid control that works in the form
layout
| tool (design time) and implements things such as looking up its own column
| widths at runtime. But I cant seem to get the datagrid to work at design
| time although I was able to sublcass other controls such as button without
| too much trouble. Has anyone managed to do this with DataGrid?
|
| regards
| Josh
|
|
|
 
I'm trying to create a custom datagrid too.
well just starting and find it difficult.

basically I would like to have
- owner drawn cell (custom color, etc)
- hyperlink like cell (blue underlined text, which fire an event when I clic
on it)
- customize the side header (the one with '>' which poit to the selected
column)

any tip ? code sample ? link ?
thanks.

Lloyd
 
We have quite a few samples located at:

http://smartdevices.microsoftdev.com/

There are some custom control quickstarts located at:

http://smartdevices.microsoftdev.com/Learn/Code+Samples/QuickStarts/default.
aspx

Hopefully, some of these will be useful to you.

-Ben

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Lloyd Dupont" <[email protected]>
| References: <#[email protected]>
| Subject: Re: custom datagrid
| Date: Tue, 5 Aug 2003 11:12:46 +1000
| Lines: 33
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 61.95.54.83
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30130
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I'm trying to create a custom datagrid too.
| well just starting and find it difficult.
|
| basically I would like to have
| - owner drawn cell (custom color, etc)
| - hyperlink like cell (blue underlined text, which fire an event when I
clic
| on it)
| - customize the side header (the one with '>' which poit to the selected
| column)
|
| any tip ? code sample ? link ?
| thanks.
|
| Lloyd
|
|
| | > Hi,
| >
| > Im trying to develop a custom datagrid control that works in the form
| layout
| > tool (design time) and implements things such as looking up its own
column
| > widths at runtime. But I cant seem to get the datagrid to work at
design
| > time although I was able to sublcass other controls such as button
without
| > too much trouble. Has anyone managed to do this with DataGrid?
| >
| > regards
| > Josh
| >
| >
|
|
|
 
Back
Top