472,805 Members | 3,638 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 1696
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Peter Schwalm | last post by:
I'd like to modify the python search path depending on the source directory of the script being started. The reason is: I use a version control system, and the python scripts and modules are...
4
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init (...
1
by: Jaco Karsten | last post by:
I am writing a customized DataGrid control which will allow the user to only select an entire row (and not a cell inside the row). So I want to add readonly columns to the datagrid. To achieve...
0
by: Jax | last post by:
I am using a class that inherits from the DataGridTextBoxColumn. It adds a combo box into the column where it displays a selection of choices. The problem I have is that when this comboBox loses...
1
by: Sangeetha | last post by:
I have a datagrid column which I want to expand when i type in some text. Initially I tried increasing the column width on the key down event of that DataGridTextBoxColumn, but it didn't work out as...
0
by: JMarques | last post by:
I have one DataGrid with one column colPWD, and the code DataGridTableStyle dgStyle = new DataGridTableStyle(); DataGridTextBoxColumn colPWD = new DataGridTextBoxColumn(); colPWD.MappingName =...
3
by: Agnes | last post by:
How Can I set the max length in the datagrid ? Thanks
2
by: Job Lot | last post by:
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...
5
by: Datagridtextboxcolumn not firing event | last post by:
"PLEASE HELP, I NEED HELP N O W !!!" AddHandler dgtxtboxcolumn.textbox.KeyDown, AddressOf TextBoxKeyPress Private Sub TextBoxKeyPress(ByVal sender as Object, ByVal e as KeyEventArgs) End...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.