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