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 We are trying to run the Mrp Job I.e  steps (RMMRP00) with variant PLVH_NETCHNG).. I have 1 db server and 2 apps servers and it the starts to run for about 2 minutes and then  crashes with the ffg error: Total Planning Run stopped due to 25 Termin [More]
Hello, I have a thinkpad t61p connected to the advanced mini-dock. I also have an external monitor connected to the DVI port. When I press the "Eject request" button on the dock, the green led starts to blink and then stops blinking. After this [More]
I am trying to transition from using MS office (for over a decade now) to using the Apple suite of apps. I am in grad school so I write a lot of papers. I am working on one now that requires appendices at the end. I am working on the paper in section [More]
Hi, I'm trying to get form validation working in struts but am running into a bit of difficulty. I have a couple of questions: 1) When an ActionError is returned - does the input form have to have used <html:form> tags for the errors to be shown. Th [More]
Hello I made a Link Aggregation on a T2000 with e1000g1 & e1000g2 successfully. Now i want to raise up the mtu size to mtu 9000 for the aggregation. I tried /etc/hostname.aggr mtu 9000 unsuccessfully- MTU size still 1500 /kernel/drv/etc/e1000g.conf s [More]
Hey all, Any one has the idea about the currency conversion from oracle financials 10.7 to 11i?? how to handle it?? do we need seperate code for currency conversion or is there any software that we can use??<BLOCKQUOTE><font size="1" fa [More]
Hi. I installed SLiM as login manager but I am having some problems making load and boot. It's installed, enabled, started but still get this message at 'status' : [[email protected] alecs]# systemctl enable slim.service ln -s '/usr/lib/systemd/system/slim.s [More]
I have P10-792 Toshiba satellite and I 'm trying to setup intel 2100 WiFi but I cannot find the built-in antenna http://nl.computers.toshiba-europe.com/Contents/Toshiba_nl/NL/Others/PriceList/Prijslijst_Nederland_3jan2005.pdf as they say here in page [More]
I have been using Mozilla firefox with Windows 7 and it was working fine till yesterday. But now its not responding when I am clicking on the icon. It is listed in all programs list as well as in firewalls exceptions. I want to make it start working [More]
italian language doesn't work nevertheless I choose it in the options. It's keeping to work in english language only! == This happened == Every time Firefox openedFirefox betas haven't been localized yet. Localization support will trickle in over the [More]