Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customizing DataGridTextBoxColumn

Status
Not open for further replies.

meinhunna

Programmer
Jul 31, 2004
118
AU
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!!!
 
this.DataGridTableStyle.DataGrid.SelectionBackColor

Be aware that the DataGridTableStyle has its own SelectionBackColor property so you might want to use that one instead depending on how you want to navigate the hierarchy.

this.DataGridTableStyle.SelectionBackColor
 
Sorry, that was C#, try:

Me.DataGridTableStyle.DataGrid.SelectionBackColor

or

Me.DataGridTableStyle.SelectionBackColor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top