PC Review


Reply
Thread Tools Rate Thread

bool column style in compact framework?

 
 
Andrew
Guest
Posts: n/a
 
      31st Jan 2009
..NET 2.0

I believe this question must have been asked many times in this forum
already. I could find it though.

I want to create a BoolColumnStyle in Compact Framework. But it seems many
many method and properties of regular framework are not available here...

whats the best way to do this?


 
Reply With Quote
 
 
 
 
Andrew
Guest
Posts: n/a
 
      1st Feb 2009
Any one please?


"Andrew" <(E-Mail Removed)> wrote in message
news:%239DR$(E-Mail Removed)...
> .NET 2.0
>
> I believe this question must have been asked many times in this forum
> already. I could find it though.
>
> I want to create a BoolColumnStyle in Compact Framework. But it seems many
> many method and properties of regular framework are not available here...
>
> whats the best way to do this?
>



 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      1st Feb 2009
to be more precise, by BoolColumnStyle i mean a column of checkboxes in
Compact Framework datagrid.

Awaiting responses...

-Andrew

"Andrew" <(E-Mail Removed)> wrote in message
news:%239DR$(E-Mail Removed)...
> .NET 2.0
>
> I believe this question must have been asked many times in this forum
> already. I could find it though.
>
> I want to create a BoolColumnStyle in Compact Framework. But it seems many
> many method and properties of regular framework are not available here...
>
> whats the best way to do this?
>



 
Reply With Quote
 
Richard Jones
Guest
Posts: n/a
 
      1st Feb 2009
This is what I do:

class Person
{
private bool eligibale=false;

public bool Eligable {
get
{
return eligable
}
}

// I add this bit and use a texbox column to display my label
public string Eligable_Label
{
get { return Eligable?"X":"";}
}
}

It works pretty well. Maybe not what you wanted to hear, but
certainly a workable solution.

Richard (Device Dev MVP)
 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      3rd Feb 2009
Thanks Richard for your help.

I will attempt your suggestion. It seems like it will 'Paint' X to look like
check box. I need actual check box so that I can handle 'CheckedChange' kind
of event. I dont seem to find the 'inner' TextBox of the
DataGridTextBoxColumn also... its unlike the regular framework...

I am starting to arrive to a conclusion that the CompactFramework data grid
and its extention systems (DataGridColumnStyle) are too too limited to be of
any use really... like we cant implement a good DataGridBoolColumn which is
in regular framework (and yes, the DataGridView of regular framework is much
better anyway)...

More inputs and pointers in this will be highly appreciated.

-Andrew


"Richard Jones" <(E-Mail Removed)> wrote in message
news:b37c961f-42cd-4353-82e4-(E-Mail Removed)...
> This is what I do:
>
> class Person
> {
> private bool eligibale=false;
>
> public bool Eligable {
> get
> {
> return eligable
> }
> }
>
> // I add this bit and use a texbox column to display my label
> public string Eligable_Label
> {
> get { return Eligable?"X":"";}
> }
> }
>
> It works pretty well. Maybe not what you wanted to hear, but
> certainly a workable solution.
>
> Richard (Device Dev MVP)



 
Reply With Quote
 
Simon Hart [MVP]
Guest
Posts: n/a
 
      15th Feb 2009
I don't know anyone who actually uses the DataGrid in there apps on the CF.
Most folks write there own controls due to the limitations and the lack of
functionality including look and feel in the standard CF UI BCL. It wouldn't
be hard to actually write you;re own control with a checkbox, trap the click
event and draw the checkbox (image) on of off.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://www.simonrhart.com

"Andrew" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Richard for your help.
>
> I will attempt your suggestion. It seems like it will 'Paint' X to look
> like check box. I need actual check box so that I can handle
> 'CheckedChange' kind of event. I dont seem to find the 'inner' TextBox of
> the DataGridTextBoxColumn also... its unlike the regular framework...
>
> I am starting to arrive to a conclusion that the CompactFramework data
> grid and its extention systems (DataGridColumnStyle) are too too limited
> to be of any use really... like we cant implement a good
> DataGridBoolColumn which is in regular framework (and yes, the
> DataGridView of regular framework is much better anyway)...
>
> More inputs and pointers in this will be highly appreciated.
>
> -Andrew
>
>
> "Richard Jones" <(E-Mail Removed)> wrote in message
> news:b37c961f-42cd-4353-82e4-(E-Mail Removed)...
>> This is what I do:
>>
>> class Person
>> {
>> private bool eligibale=false;
>>
>> public bool Eligable {
>> get
>> {
>> return eligable
>> }
>> }
>>
>> // I add this bit and use a texbox column to display my label
>> public string Eligable_Label
>> {
>> get { return Eligable?"X":"";}
>> }
>> }
>>
>> It works pretty well. Maybe not what you wanted to hear, but
>> certainly a workable solution.
>>
>> Richard (Device Dev MVP)

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft C# .NET 0 24th May 2007 03:22 AM
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft Dot NET Framework 2 22nd May 2007 02:35 AM
Building a SOAP Message (in Compact Framework) [REPLYING FROM microsoft.public.dotnet.framework] news.microsoft.com Microsoft Dot NET Compact Framework 1 2nd Apr 2004 10:14 PM
DataGrid Column Styles in Compact Framework Robert Hanson Microsoft Dot NET Compact Framework 1 20th Mar 2004 09:23 AM
Building a SOAP Message (in Compact Framework) [REPLYING FROM microsoft.public.dotnet.framework] news.microsoft.com Microsoft Dot NET Framework 0 16th Mar 2004 04:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:29 AM.