PC Review


Reply
Thread Tools Rate Thread

Customizing DataGridTextBoxColumn

 
 
=?Utf-8?B?Sm9iIExvdA==?=
Guest
Posts: n/a
 
      19th Feb 2005
I am customizing DataGridTextBoxColumn. How can I access properties in
DataGrid to which custom DataGridTextBoxColumn will be added.

Say for instance, how I would access SelectionBackColor property of the
DataGrid to which this custom column is added?

Do I have to get to the table style as column is added to table style and
then find out which DataGrid this table style is added to and then find
SelectionBackColor of that DataGrid?

I am confused, please help!!!

 
Reply With Quote
 
 
 
 
Paul
Guest
Posts: n/a
 
      19th Feb 2005
Hi Job Lot:

Access the following to get your DataGridName

YourDataGridTextBoxColName.DataGridTableStyle.DataGrid (gives you the
DataGrid Object)
That will refer you to the DataGrid it's contained in

Once you have the DataGrid you can do this
DataGridObjectFromAbove.SelectionBackColor

Hope this helps,
Paul.



"Job Lot" <(E-Mail Removed)> wrote in message
news:F8796ADE-743D-4747-8C48-(E-Mail Removed)...
>I am customizing DataGridTextBoxColumn. How can I access properties in
> DataGrid to which custom DataGridTextBoxColumn will be added.
>
> Say for instance, how I would access SelectionBackColor property of the
> DataGrid to which this custom column is added?
>
> Do I have to get to the table style as column is added to table style and
> then find out which DataGrid this table style is added to and then find
> SelectionBackColor of that DataGrid?
>
> I am confused, please help!!!
>



 
Reply With Quote
 
=?Utf-8?B?Sm9iIExvdA==?=
Guest
Posts: n/a
 
      19th Feb 2005
Thanks

"Paul" wrote:

> Hi Job Lot:
>
> Access the following to get your DataGridName
>
> YourDataGridTextBoxColName.DataGridTableStyle.DataGrid (gives you the
> DataGrid Object)
> That will refer you to the DataGrid it's contained in
>
> Once you have the DataGrid you can do this
> DataGridObjectFromAbove.SelectionBackColor
>
> Hope this helps,
> Paul.
>
>
>
> "Job Lot" <(E-Mail Removed)> wrote in message
> news:F8796ADE-743D-4747-8C48-(E-Mail Removed)...
> >I am customizing DataGridTextBoxColumn. How can I access properties in
> > DataGrid to which custom DataGridTextBoxColumn will be added.
> >
> > Say for instance, how I would access SelectionBackColor property of the
> > DataGrid to which this custom column is added?
> >
> > Do I have to get to the table style as column is added to table style and
> > then find out which DataGrid this table style is added to and then find
> > SelectionBackColor of that DataGrid?
> >
> > I am confused, please help!!!
> >

>
>
>

 
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
datagridtextboxcolumn schapopa Microsoft VB .NET 1 8th Feb 2006 11:56 AM
DataGridTextBoxColumn()?? Darryn Ross Microsoft C# .NET 1 11th Aug 2004 11:20 AM
DataGridTextBoxColumn Viper Microsoft Dot NET Compact Framework 0 3rd Jun 2004 10:18 PM
Re: DataGridTextBoxColumn Cor Ligthert Microsoft VB .NET 1 30th Apr 2004 06:31 PM
DataGridTextBoxColumn Phill Shaw Microsoft Dot NET Compact Framework 0 27th Jan 2004 10:53 PM


Features
 

Advertising
 

Newsgroups
 


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