PC Review


Reply
Thread Tools Rate Thread

DataGrid custom column?

 
 
Reinhard Lehner
Guest
Posts: n/a
 
      16th Feb 2004
Hi there!

I want to implement custom columns (buttons or checkboxes) in a datagrid.
Is it possible or not?

If not - are there other ways to solve this problem, for example using a
listview or API-Calls?

Thank You very much
Reinhard


 
Reply With Quote
 
 
 
 
Angel Montesinos
Guest
Posts: n/a
 
      16th Feb 2004
Yes, you have to extend the class DataGridTextBoxColumn and adding all that
you want. Search "extend DataGridTextBoxColumn".

"Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
news:%(E-Mail Removed)...
> Hi there!
>
> I want to implement custom columns (buttons or checkboxes) in a datagrid.
> Is it possible or not?
>
> If not - are there other ways to solve this problem, for example using a
> listview or API-Calls?
>
> Thank You very much
> Reinhard
>
>



 
Reply With Quote
 
Reinhard Lehner
Guest
Posts: n/a
 
      16th Feb 2004
That's it!!

Thanks's a lot
Reinhard

"Angel Montesinos" <(E-Mail Removed)> wrote in message
news:%23r3wj%(E-Mail Removed)...
> Yes, you have to extend the class DataGridTextBoxColumn and adding all

that
> you want. Search "extend DataGridTextBoxColumn".
>
> "Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
> news:%(E-Mail Removed)...
> > Hi there!
> >
> > I want to implement custom columns (buttons or checkboxes) in a

datagrid.
> > Is it possible or not?
> >
> > If not - are there other ways to solve this problem, for example using a
> > listview or API-Calls?
> >
> > Thank You very much
> > Reinhard
> >
> >

>
>



 
Reply With Quote
 
Angel Montesinos
Guest
Posts: n/a
 
      16th Feb 2004
Or you could directly extend the class DataGridColumnStyle...

"Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
news:%(E-Mail Removed)...
> That's it!!
>
> Thanks's a lot
> Reinhard
>
> "Angel Montesinos" <(E-Mail Removed)> wrote in message
> news:%23r3wj%(E-Mail Removed)...
> > Yes, you have to extend the class DataGridTextBoxColumn and adding all

> that
> > you want. Search "extend DataGridTextBoxColumn".
> >
> > "Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
> > news:%(E-Mail Removed)...
> > > Hi there!
> > >
> > > I want to implement custom columns (buttons or checkboxes) in a

> datagrid.
> > > Is it possible or not?
> > >
> > > If not - are there other ways to solve this problem, for example using

a
> > > listview or API-Calls?
> > >
> > > Thank You very much
> > > Reinhard
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Angel Montesinos
Guest
Posts: n/a
 
      17th Feb 2004
I´m sorry, you have to make a solution like this:

http://msdn.microsoft.com/library/de...id_control.asp

"Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
news:%(E-Mail Removed)...
> Hi there!
>
> I want to implement custom columns (buttons or checkboxes) in a datagrid.
> Is it possible or not?
>
> If not - are there other ways to solve this problem, for example using a
> listview or API-Calls?
>
> Thank You very much
> Reinhard
>
>



 
Reply With Quote
 
Reinhard Lehner
Guest
Posts: n/a
 
      17th Feb 2004
No problem.

I found out that there's no such method "GetColumnValueAtRow" for the
CompactFramework version of the datagrid.

So there is no chance to put a button or a checkbox into datagrid columns?

Thank's
Reinhard


"Angel Montesinos" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I´m sorry, you have to make a solution like this:
>
>

http://msdn.microsoft.com/library/de...id_control.asp
>
> "Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
> news:%(E-Mail Removed)...
> > Hi there!
> >
> > I want to implement custom columns (buttons or checkboxes) in a

datagrid.
> > Is it possible or not?
> >
> > If not - are there other ways to solve this problem, for example using a
> > listview or API-Calls?
> >
> > Thank You very much
> > Reinhard
> >
> >

>
>



 
Reply With Quote
 
Angel Montesinos
Guest
Posts: n/a
 
      23rd Feb 2004
There is a chance to put a control in a DataGrid, see the link I wrote in
the previous message.

"Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
news:(E-Mail Removed)...
> No problem.
>
> I found out that there's no such method "GetColumnValueAtRow" for the
> CompactFramework version of the datagrid.
>
> So there is no chance to put a button or a checkbox into datagrid columns?
>
> Thank's
> Reinhard
>
>
> "Angel Montesinos" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I´m sorry, you have to make a solution like this:
> >
> >

>

http://msdn.microsoft.com/library/de...id_control.asp
> >
> > "Reinhard Lehner" <(E-Mail Removed)> escribió en el mensaje
> > news:%(E-Mail Removed)...
> > > Hi there!
> > >
> > > I want to implement custom columns (buttons or checkboxes) in a

> datagrid.
> > > Is it possible or not?
> > >
> > > If not - are there other ways to solve this problem, for example using

a
> > > listview or API-Calls?
> > >
> > > Thank You very much
> > > Reinhard
> > >
> > >

> >
> >

>
>



 
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
Custom datagrid column VC Microsoft C# .NET 3 13th Nov 2008 02:08 PM
Datagrid Color Custom Column simchajoy2000@yahoo.com Microsoft VB .NET 0 3rd May 2007 05:25 PM
custom column format for asp.net datagrid =?Utf-8?B?YWRhbUB0d3Yub3Jn?= Microsoft ASP .NET 1 18th Jul 2004 02:55 PM
DataGrid - Tab skips my custom column WineNCheese Microsoft Dot NET Framework Forms 2 12th May 2004 03:52 PM
custom datagrid column Tom Microsoft VB .NET 1 20th Sep 2003 02:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:59 AM.