Sitemap

Amicuk Programming Answers

Disabling resize on row selected column in DataGridView

-0001-11-30   Views:2

Advertisement

Hi, In my application, I have managed to disable resizing of my data columns on my DataGridView, but the only column that I cannot disable the resize feature is on the row select column, you know, the one which shows which row is currently selected (

Hi,
In my application, I have managed to disable resizing of my data columns on my DataGridView, but the only column that I cannot disable the resize feature is on the row select column, you know, the one which shows which row is currently selected (also shows the little pencil when the line is being edited).
Can someone help me identify how to disable this please? I'm using VS2005 pro and C#.
I'm doing this programmatically because my program uses many different databases. I currently do things like:
this.myDataGridView.Columns["LineIndex"].width = 100;
this.myDataGridView.Columns["LineIndex"].Resizable = DataGridViewTriState.False;
Can I do the same sort of thing to fix the width of the row selection column? I don't want to hide it, just stop the resizing of this column!
Thanks
Sean

The replay answer
Advertisement
This option disables columns re-sizing at all, also if property AllowUserToResizeColumns =True ...Did you know how can I to enable to user to resize all columns, except "selector column" (the column with the arrow)? Thanks

Go to See the other 4 answers

Disabling resize on row selected column in DataGridView

Category:DefaultRelease time:-0001-11-30Views:130

Hi, In my application, I have managed to disable resizing of my data columns on my DataGridView, but the only column that I cannot disable the resize feature is on the row select column, you know, the one which shows which row is currently selected ([More]

JTable - Column swap disabling for selected columns

Category:DefaultRelease time:-0001-11-30Views:130

Hi, In my JTable i want to disable the swapping of selected columns, table.getTableHeader().setReorderingAllowed(false); this disables the whole table swapping. Is there anyway to disable only selected column swapping? Thanks in advance. Yours, ArunI[More]

Disabling multiple row selection in JTable

Category:DefaultRelease time:-0001-11-30Views:130

hi, I have a JTable and I want to disable the multiple row selection. I used getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);and this working fine with ctr+clicking on a row but if i am using shift key instead of Ctrl k[More]

Interactive report with single row select

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Is it possible to create an interactive report that has a single row select column i.e. you can only select one row and when you select another row it deselects any row selected before, simular to a list of values but with the functionionality of[More]

Disable DataGrid row selection for a column?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a DataGrid with a CheckBox in one column. When the CheckBox itself is clicked, or any point in the CheckBox column is clicked, I *don't* want the grid row selected. IOW, row selection should be disabled for the column. How to get this beha[More]

Is it possible to enable/disable table row selection?

Category:DefaultRelease time:-0001-11-30Views:130

I have a situation where a user can add rows to a "selection" table with a value that is used to perform a query to get a collection of objects associated with that value. Once those objects are available, a second "results" table will[More]

Interactive Report - Include Non-selected Column in Row Text Search

Category:DefaultRelease time:2015-10-11Views:130

Hi, We have an interactive report that contains many columns. NAME VARCHAR2(30), TYPE VARCHAR2(30) etc and DESCRIPTION VARCHAR2(4000). Normally the DECRIPTION column would not be shown (avalilable for dispaly via 'Select Columns' but not selected), h[More]

Make Select rows and columns as read only in Table Control

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I would like to know how to make certain cells in a Table Control as display only. Table control should look like-(Those in bold are read only or in display mode) <b>Name1            Idno1 </b>         Address1 <b>Name2          [More]

How to get the current selected column and row

Category:DefaultRelease time:2015-10-11Views:130

Hi, A difficult one, how do i know which column (and row would also be nice) of a JTable is selected? e.g. I have a JButton which is called "Edit" when i select a cell in the JTable and click the button "Edit" a new window must be visi[More]

Cursor in select query in row to column format

Category:DefaultRelease time:2015-10-11Views:130

Hi I have the query like below SELECT d.department_id,              CURSOR(SELECT e.first_name,                      e.last_name               FROM   employees e               WHERE  e.department_id = d.department_id        ) emps FROM   depatments d[More]

How to set the Selected row and Column in JTable

Category:DefaultRelease time:2015-10-11Views:130

Hi, i have a problem like the JTable having one Method getSelectedRow() and getSelectedColumn to know the Selected row and Column but if i want to explicitly set the Selected Row and Column,then there is no such type of Methods.If anybody has any sol[More]

Hot
HI, A company uses Plant Maintenance for Engineering overhauls. MM is used for Engineering spares only (i.e. not for goods for resale etc). The requirement is to set up ongoing Plant Maintenance Orders, one for each item of plant (only 600). The plan [More]
I want to sync my stuff on iTunes from my iPhone 4S, (iOS version 7.0.4) but it wants me to authorize my computer. I did that and it said this computer is already authorized. When I try to sync the iPhone again, it said the computer is no longer auth [More]
I updated my ipod touch to 5.0.1., and it works great except for one thing. All my artists are messed up, it's like my ipod while it was updating, took the time to go online and look up exactly who sang what. For example i had tons of disney songs, l [More]
I have a requirement to add some aggregate metrics at the bottom of my "tableRegion". The "TotalValue" property value for the table is not going to work for me since I the data I'm calculating is more complicated then doing a simple &q [More]
Hello, We have created a sales order with account assingment as WBS element.  From this line service order will be created, but when we check the service order additional data, the wbs element field is showing as blank. What is the reason for this.Ab [More]
Everytime I try to create a PDF portfolio, Acrobat Pro X crashes on me! What can I do??Hi, You can configure new portfolio under: TRM-->Tansaction Manager --> General Settings --> Organization --> Define Portfolio Regards PrasadRead other 2 an [More]
Hi, Anyone can advise where the character restriction is set for a node name (member name). I want to add a member into a hierarchy, but I does not allow me to enter the following characters: (space), + ( ) & %. Everytime I type the character, it jus [More]
I have just redeemed an iTunes card, but my balance does not change to $15.00, but instead changes to $00.01 cant figure it out, did i waste money????And you didn't owe iTunes anything or have pre-orders ? If you can't find where the money went then [More]
I'm having trouble with my  Ipad. It cant find any networks around it. What do i do?, I'm having trouble with my  Ipad. It cant find any networks around it. What do i do?Start here:  iPad: Troubleshooting Wi-Fi networks and connections.Read other 2 a [More]
I would like to include the TestStand Menubar into an Operator Interface created using the Simple OI example provided with TestStand.  I have reviewed the Full Featured example and copied the Localize Menu portion of the Localize Operator Interface s [More]