473,666 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customizing DataGridTextBox Column

I am customizing DataGridTextBox Column. How can I access properties in
DataGrid to which custom DataGridTextBox Column will be added.

Say for instance, how I would access SelectionBackCo lor 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
SelectionBackCo lor of that DataGrid?

I am confused, please help!!!

Jul 21 '05 #1
2 1764
Hi Job Lot:

Access the following to get your DataGridName

YourDataGridTex tBoxColName.Dat aGridTableStyle .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
DataGridObjectF romAbove.Select ionBackColor

Hope this helps,
Paul.

"Job Lot" <Jo****@discuss ions.microsoft. com> wrote in message
news:F8******** *************** ***********@mic rosoft.com...
I am customizing DataGridTextBox Column. How can I access properties in
DataGrid to which custom DataGridTextBox Column will be added.

Say for instance, how I would access SelectionBackCo lor 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
SelectionBackCo lor 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

YourDataGridTex tBoxColName.Dat aGridTableStyle .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
DataGridObjectF romAbove.Select ionBackColor

Hope this helps,
Paul.

"Job Lot" <Jo****@discuss ions.microsoft. com> wrote in message
news:F8******** *************** ***********@mic rosoft.com...
I am customizing DataGridTextBox Column. How can I access properties in
DataGrid to which custom DataGridTextBox Column will be added.

Say for instance, how I would access SelectionBackCo lor 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
SelectionBackCo lor 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
2355
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 migrated through several stages before they are used in production. A python script running in a development environment should use different modules - possibly in other directories then the script source directory - than the same script running in a...
4
6675
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 ( AxMSFlexGridLib.AxMSFlexGrid oGrid,
1
1916
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 this, instead of using a "DataGridTextBoxColumn" inside the datagrid I want the control to use a "DataGridTextBoxColumn" that has a disabled "Edit" method. Therefor I have created my own version of a "DataGridTextBoxColumn" class called...
0
2159
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 focus I lose the selected text. And this next line isn't setting the text in the cell. // code within the custom DataGridComboBoxColumn class this.TextBox.Text = this.ComboBox.SelectedItem.ToString();
1
8739
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 expected. Now, I am trying to increase the height of the row to make it as a multiline column. private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true...
0
2472
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 = "PWD"; colPWD.HeaderText = "Password"; colPWD.TextBox.PasswordChar = '*'; colPWD.TextBox.Multiline = false; colPWD.Width = 130; colPWD.NullText = String.Empty;
3
3109
by: Agnes | last post by:
How Can I set the max length in the datagrid ? Thanks
2
298
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 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?
5
1825
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 Sub Not Firing the Enter Key event except Other Keys.
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.