Customizing DataGridTextBoxColumn

  • Thread starter Thread starter Guest
  • Start date Start date
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!!!
 
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.
 
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.
 
Back
Top