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
hey i wonder if someone could help me please i dropped my phone in the bath the other day managed to dry it out in rice now i cant seem to get it to turn on it keeps going on to the grey screen with the apple then it dims down and comes up with the f [More]
Hi all. Just bought my first video from iTunes Store and should watch it with my son. I had to authorize, this and that for some time, but finally I got the video in my iTunes, but it was just a black screen. Nothing playing and no sound (of course). [More]
Strange behavior: Since update no sync with iPhone but no problem with iPad mini! iPhone sync stucks on "waiiting to use the changes" (not sure about the correct transation from german). Makes me crazy! I tried sync with cable, WiFi and every hi [More]
Ever since upgrading to Yosemite, the 'save as' dialog box will partly hide behind the dock. I can't see the 'save' nor the 'cancel' button. Now I don't want the dock to auto hide, nor do I want to make it so small I can hardly see the icons, because [More]
Phone: Android - 4.4.4 Firefox - 37.0.2 Desktop: Windows XP Firefox - 37.0.2 Nothing will sync to either device. Is this because XP is incompatible with the newer version of firefox sync? If yes, then how can I go back to the old version and sync? I' [More]
Hello everybody, there's something that's been on my mind for quiet a while now, and everytime I think about I get confused even more lol. Anyway, this might sound stupid to most of you but I donno, I just don't get it. There are many flash developer [More]
Can't seem to get it to install, get as far as 'initializing installer' but progress bar just sticks there. Have tried restarting computer and trying again. Doesn't even let me cancel it, becomes non-responsive?Sorry you are having problems. Is this [More]
How to see a movie in Apple TV while dowloading?Welcome to the Apple Community. Movies downloading to the Apple TV will start when enough of the file has been downloaded to ensure the movie can play in its entirety without stopping.Read other 6 answe [More]
The following is the error that I have been getting for quite some time: An error has occurred The operation was cancelled.(3072)You're trying to update an application that's running, perhaps in another account. Make sure you quit all apps that are t [More]
Can anybody tell me if you can upgrade from 1.56 to aperture 3? And will that convert my old library so that I use it in the new version? I upgraded to snow leopard and now cannot access my old library. Any info would be greatly appreciated. thanks j [More]