Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have one gridview which is dock in parent controller

https://i.imgur.com/ML7QWgx.png[^][^]

so when my gridview is loading at run time, It is not showing horizontal scrollbar.
Its is showing vertical scrollbar only.

I have check that all the gridview columns are set frozen = false.

Grid after data loading

https://i.imgur.com/1WkEOcM.png[^]

What I have tried:

for (int i = 0; i < grdCDcrane.Columns.Count; i++)
{
grdCDcrane.Columns[i].Frozen = false;
}

and

grdCDcrane.ScrollBars = ScrollBars.Both;
Posted
Updated 1-Dec-21 2:29am
v4
Comments
Richard MacCutchan 30-Nov-21 7:17am    
Where is the image of the filled DataGridView?
Devendra Sarang 30-Nov-21 7:23am    
updated in main question

some data is hidden because it is some private data of client.

but as we can see it is showing only 1 scrollbar
Richard MacCutchan 30-Nov-21 7:56am    
I just tried some tests and it works fine. You need to gather more information.
Devendra Sarang 30-Nov-21 8:03am    
i have notice one more thing.

data should be loaded in gridview on form load.

So when form is loading and datagridview is showing, at that time horizontal scrollbar showing

but as soon as data loading in datagridview is completed, it gone
Richard MacCutchan 30-Nov-21 8:07am    
Sorry, but it is impossible to guess what may be the cause. As I said you need to gather more information, probably by using the debugger to see exactly what is happening.

1 solution

Looks to me like the gridview is taller than the window. Your problem is only indirectly related to the grid being filled.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900