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
Every time I open Firefox this is what comes up on in my navigation bar :http://us.data.toolbar.yahoo.com/bh/v3/epa/?.sc=yff40&.tc=&.intl=us&.cv=2.3.6.20110307083656&url=http%3A//us.data.toolbar.yahoo.com/bh/v3/epa/%3F.sc%3Dyff40%26.tc%3D% [More]
Guys i have a Mac Pro 2009 with 4 monitors attached. Since i upgrade to 10.8, then to 10.8.1 and now to 10.8.2 my Mac Pro every time it starts, cannot remember the order and appearance of my displays so ihave to reorder them every single time. Can so [More]
I have try to use the tree component i a flash page, and it´s going allright until I´ll want to link the content to a page... WHY?? I have tried a lot of different codes here are those I tried: <tree> <folder label="Mine own"> <li [More]
Hi, Like so many before me, I am trying to make TOMCAT 4.0.4 and Apache 2.0.39 play together on Windows 2000, and am failing miserably. I followd several different approaches with no success. When I place the include directive in httpd.conf, Apache w [More]
Hi Everyone, i am having some issue while running my application ,Actually  i had 3 different project like test,testservice and testsericeEJB. Test had Actionclass,jsp,etc.. for this we had test.ear and Testservice  had  some validation ,database con [More]
Hi all, we currently test failover of our WLS 11g cluster. How can I see in the Console to which managed server a client is connected? Thank you in advance Regards Rolftoday i found a way to get the name of the server in a cluster which handles the a [More]
Hi, I have one procedure in Oracle which is returning the REF Cursor I am accessing it by using the Data access application block DAAB like the following: OracleParameter param = new OracleParameter(); param.ParameterName = "Emp_Cursor"; param.O [More]
Greetings. I send variously-sized photo files as JPEGs attached to email; some recipients can open them with no problems, but others have significant difficulties. Most recently, a customer has claimed that she can only open my JPEG photo file attach [More]
after upgraded from 10.7 to10.80, my wired internet cannot work, i do not know why, so i really want to down grade it but i cannot do that, why and how?Have you tested you wired internet with another Mac or PC to see if it works there? You may also w [More]
Can anyone help how to access and use lightroom through this program. I got the membership and still I am unable to access Lightroom, it says that "You have 0 days trial period". Earlier I was using the trial version of Lightroom 5.3.Hi Bala1437 [More]