Hide Data Grid View Columns 2
-
Hello, Any help would be great! I have tryed the (datagrid.columns[1]. visable = false) the issue is that, using this method shrinks all the rows of data in the data grid view. Even if i set the row height, it seems to make no difference. I need to set which columns are shown in code, and I change the data source for the data grid view as needed. I have also tryed (datagrid.columns[i].width = 0) and (col.width = 0), both produce the same result, the column width is changed to 0, but you can still see the column, only it appears as a line, and if you are hiding a few columns then it is very noticable. Also you can streach the columns with a width of 0 back out again. any help would be great. Thanks to thoes who replyed to my first question for this, I did try all suggestions. thanks, J
-
Hello, Any help would be great! I have tryed the (datagrid.columns[1]. visable = false) the issue is that, using this method shrinks all the rows of data in the data grid view. Even if i set the row height, it seems to make no difference. I need to set which columns are shown in code, and I change the data source for the data grid view as needed. I have also tryed (datagrid.columns[i].width = 0) and (col.width = 0), both produce the same result, the column width is changed to 0, but you can still see the column, only it appears as a line, and if you are hiding a few columns then it is very noticable. Also you can streach the columns with a width of 0 back out again. any help would be great. Thanks to thoes who replyed to my first question for this, I did try all suggestions. thanks, J
jasper018 wrote:
I have tryed the (datagrid.columns[1]. visable = false) the issue is that, using this method shrinks all the rows of data
Where have you tried this and what do you mean it shrinks the rows?
jasper018 wrote:
Thanks to thoes who replyed to my first question for this, I did try all suggestions.
So this is a repost of the same question?
only two letters away from being an asset
-
jasper018 wrote:
I have tryed the (datagrid.columns[1]. visable = false) the issue is that, using this method shrinks all the rows of data
Where have you tried this and what do you mean it shrinks the rows?
jasper018 wrote:
Thanks to thoes who replyed to my first question for this, I did try all suggestions.
So this is a repost of the same question?
only two letters away from being an asset
answer question 1: when using the (datagrid.columns[i].visible = false) method when the data grid load in the form, the row height is set to 0, even if i reset is before it is displayed it does not change. so there for all the rows appear shrinked. I do not know why this is happening, and no matter what I do, or set, it seems to set the row height to 0. answer question 2: Yes I have posted this question before... the responses I had gotten, though helpfull, did not help with my problem, i am really stumped with this one.
-
Hello, Any help would be great! I have tryed the (datagrid.columns[1]. visable = false) the issue is that, using this method shrinks all the rows of data in the data grid view. Even if i set the row height, it seems to make no difference. I need to set which columns are shown in code, and I change the data source for the data grid view as needed. I have also tryed (datagrid.columns[i].width = 0) and (col.width = 0), both produce the same result, the column width is changed to 0, but you can still see the column, only it appears as a line, and if you are hiding a few columns then it is very noticable. Also you can streach the columns with a width of 0 back out again. any help would be great. Thanks to thoes who replyed to my first question for this, I did try all suggestions. thanks, J
try to use AutoSizeMode=Fill for any visibale columan,, hope it will work
-
try to use AutoSizeMode=Fill for any visibale columan,, hope it will work
-
try to use AutoSizeMode=Fill for any visibale columan,, hope it will work