auto size of gridview column
-
Is there any way to make the gridview column autosize.I mean it the cell contains 100 characters , then the cell should itself adjust the text in one line
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
Is there any way to make the gridview column autosize.I mean it the cell contains 100 characters , then the cell should itself adjust the text in one line
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
you can not do this because in any column the records in each row has not fixed size. some contains 5 characters and some contains 55 characters. so if you want to auto size the columns then your column will be expands more worthless, for ex: there are 10 rows in grid. 9 columns have 20 characters & 10th column has 90 characters than the layout of grid will not shows in regular manner. so, instead of these you have to set wrap property to the columns and give some fixed width by approximation of column name. for column of id there is no need to give size as same as other columns like details column.