Hi Simple,
Thanks for reply.
Now i will explain my problem in more extract form. May be this will give you an idea what's the problem i am facing.
I placed a datagridview in a form. Properties of my datagridview are as follows (Alphabetically):
- (Name) : CatagoryDGV
- AllowUserToAddRows : False
- AllowUserToDeleteRows : False
- AlternatingRowsDefaultCellStyle : DataGridViewCellStyle { BackColor=Color [A=255, R=224, G=224, B=224], ForeColor=Color [Desktop], SelectionBackColor=Color [LemonChiffon], SelectionForeColor=Color [Black], Font=[Font: Name=Microsoft Sans Serif, Size=9, Units=3, GdiCharSet=0, GdiVerticalFont=False] }
- AutoSizeRowsMode : AllCells
- BackgroundColor : ActiveBorder
- ColumnHeadersDefaultCellStyle : DataGridViewCellStyle { BackColor=Color [Silver], ForeColor=Color [Desktop], SelectionBackColor=Color [LemonChiffon], SelectionForeColor=Color [ControlText], Font=[Font: Name=Microsoft Sans Serif, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False], WrapMode=True, Alignment=MiddleLeft }
- ColumnHeadersHeightSizeMode : AutoSize
- Columns : <Will be discussed below>
- DataSource : bs_Category
- GridColor : Gray
- Location : 0, 90
- Modifiers : Friend
- RowHeadersBorderStyle : Sunken
- RowHeadersDefaultCellStyle : DataGridViewCellStyle { BackColor=Color [Silver], ForeColor=Color [Desktop], SelectionBackColor=Color [LemonChiffon], SelectionForeColor=Color [ControlText], Font=[Font: Name=Microsoft Sans Serif, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False], WrapMode=True, Alignment=MiddleLeft }
- RowHeadersWidth : 19
- RowHeadersWidthSizeMode : DisableResizing
- RowTemplate : DataGridViewRow { Index=-1 }
- Size : 992, 400 (I don't have more than this space in the form. Also form size takes the entire screen size)
- TabIndex : 5
Columns in the above datagridview along with their properties are as follows:
Columns 1. DataGridViewCheckBoxColumn
- (Name) : Select_CategoryDGV
- FalseValue : False
- Frozen : True
- Resizable : False
- ToolTipText : Select
- TrueValue : True
- Width : 25
2. DataGridViewTextBoxColumn
- (Name) : ID_CategoryDGV
- DataPropertyName : ID
- DefaultCellStyle : DataGridViewCellStyle { Format=N0 }
- HeaderText : ID
- ReadOnly : True
- Visible : False
- Width : 95
3. DataGridViewTextBoxColumn
- (Name) : Categ1_CategoryDGV
- DataPropertyName : Categ1
- DefaultCellStyle : DataGridViewCellStyle { Alignment=TopLeft }
- HeaderText : Category1
- ReadOnly : True
- ToolTipText : Category1
- Width : 200
4. DataGridViewTextBoxColumn
- (Name) : Categ2_CategoryDGV
- DataPropertyName : Categ2
- DefaultCellStyle : DataGridViewCellStyle { Alignment=TopLeft }
- HeaderText : Category2
- ReadOnly : True
- ToolTipText : Category2
- Width : 200
5. DataGridViewTextBoxColumn
- (Name) : CategDesc_CategoryDGV
- DataPropertyName : CategDesc
- DefaultCellStyle : DataGridViewCellStyle { WrapMode=True, Alignment=TopLeft }
- HeaderText : Description
- MaxInputLength : 10000000
- ReadOnly : True
- ToolTipText : CategoryDescription (For mulitline entry use Shift+Enter)
- Width : 535
Now with this arrangement add few rows of data (say 20 rows) into the datagridview.
Add huge amount of data (say some 50000 characters) in any row in the last column of the datagridview.
Add huge lines of data (say some 70 lines) in another row in the last column of the datagridview.
Now try to read the above two rows of data completely using the vertical scrollbars or with tab keystroke.
I hope, you will notice find difficulty in reading all the contents in the cells i described above having more lines and having more data.
Thats the problem i am facing. How can i improve my datagridview?
I think, you can reproduce my problem with the information i given in this post.
If still i am missing, please let me know...
Once again thanks for spending time for helping me.