Customizing DataGridTextBoxColumn

G

Guest

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

Paul

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.
 
G

Guest

Thanks

Paul said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top