471,350 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Customizing DataGridTextBoxColumn

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!!!

Jul 21 '05 #1
2 1632
Hi Job Lot:

Access the following to get your DataGridName

YourDataGridTextBoxColName.DataGridTableStyle.Data Grid (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" <Jo****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
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!!!

Jul 21 '05 #2
Thanks

"Paul" wrote:
Hi Job Lot:

Access the following to get your DataGridName

YourDataGridTextBoxColName.DataGridTableStyle.Data Grid (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" <Jo****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
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!!!


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sangeetha | last post: by
3 posts views Thread by Agnes | last post: by
2 posts views Thread by Job Lot | last post: by
5 posts views Thread by Datagridtextboxcolumn not firing event | last post: by

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.