473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Disabled columns in a DataGridView

Hello,

I have a DataGridView which is populated from an Access database. The final
column is a calculated column. I have set this to ReadOnly in the column
collection properties, but now I would like to prevent the users from even
entering that column while they are tabbing through the cells in the
DataGridView sort of like setting TabStop to false on other controls. Is
this possible? I couldn't find any property of the column which would do
this?

DJ
Apr 13 '07 #1
2 3117
Hi,
try to mae it though one of the DatagridView Events. for more help, check
the following link:
http://msdn2.microsoft.com/en-us/lib...ew_events.aspx

Regards,
Husam Al-A'araj
"David Jackson" wrote:
Hello,

I have a DataGridView which is populated from an Access database. The final
column is a calculated column. I have set this to ReadOnly in the column
collection properties, but now I would like to prevent the users from even
entering that column while they are tabbing through the cells in the
DataGridView sort of like setting TabStop to false on other controls. Is
this possible? I couldn't find any property of the column which would do
this?

DJ
Apr 13 '07 #2
"Husam Al-A''araj" <Hu**********@discussions.microsoft.comwrote in message
news:8E**********************************@microsof t.com...
try to mae it though one of the DatagridView Events. for more help, check
the following link:
http://msdn2.microsoft.com/en-us/lib...ew_events.aspx
Yes I could do that; all 187 of them!

Can anyone else help me? Thanks.
Apr 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stropher | last post by:
I have the following: this.dataGridViewBill.DataSource = tblResult; //hide the following columns this.dataGridViewBill.Columns.Visible = false; //email this.dataGridViewBill.Columns.Visible =...
2
by: BrianDH | last post by:
Hi VS 2005: C#: I have a DataGridView controls that I bind to a dataset.table froma web service. .. At design time I add my columns via the collection within the grid control. However,...
8
by: George | last post by:
Hi, I have been trying to see if I can do the following: 1. Create a DataGridView 2. Create 2 columns in the DataGridView (1 textbox and the other combobox) 3. Create a DataTable containing...
0
by: sunny076 | last post by:
Hi, I am having difficulties creating a derived class for DisabledDataGridViewTextBoxColumn and cell when the VisualStyle is not supported. Basically I am down to either using ControlPaint or...
3
by: Paul Cheetham | last post by:
Hi, I have a DataGridView control, and I am using it's datasource property to assign a datatable to it at runtime. The datatable has some columns in it that I don't want to be visible. With...
3
by: Aspnot | last post by:
I have a form that is setup in a Master/Detail configuration. The Detail section is represented with a DataGridView. Some of the columns in this DataGridView control are unbound. When a user...
0
by: frostbb | last post by:
Ok, stumped one more time, I'm trying to learn how to use a DataGridView in place of the old DataGrid control. QUESTION: How do I map the columns returned from a RunTime sql query to the columns...
2
by: roundcrisis | last post by:
hi there: Any simple way to change the datagrid columns type at run time? winforms I have a datagridview, I need to make some columns checkboxes and some columns to have a button at the end...
0
by: jinksto | last post by:
Hi all, I have a datagridview that has the columns set up at design time. At run time I'm creating a dataset and would like to create columns in the dataset.table based on the columns already...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.