M
Mahesh Devjibhai Dhola [MVP]
Hi,
We are using Windows.Forms.DataGrid control in our application.
Let me explain what i have done so far so it will easy to understand the
problem:
We have used DataGridIconColumnStyle for one icon column and second is
DataGridTextBoxColumn for some other purpose
In second column i am showing Comboboxes when user clicks on it directly.
Now when user clicks on first column's icon, we are showing a big panel in
second column in the same row where we had Combobox previously.
On click on first column's icon image, big panel with some info shows in
second column's place. And at that time we are changing row height and it
changes the row height for that perticular row.
Up to this, it works fine.
Now when second column shows panel in one cell with height changed, a
vertical scroll bar appears.
But when i click on scrollbar to scroll downside, it scrolls whole first
column which has double height than total height of all other rows with
default height.
So problem is:
1. When i scroll down, it is not scrolling as per total height but it
scrolls up the whole first row in one stroke wich has very big height.
2. When it scrolls up the first row with big height value, it is not
scrolling up whole panel that i have put in the second column. It scrolls up
by just default row size.
So, what i want to do is:
1. Smooth scrolling of the vertical scroll bar
2. And with scrolling of datagrid rows, the panel should scroll also.
Before you write any comment, please have a look at the following lines,
1. I have searched all the relavant messages in the private and public
newsgroups but could not find the solution.
2. In most of the posts they have individual row height change problem which
we have done, so we have a problem of scrolling after changed height.
3. I have also searched many forums online and using google also. But i
could not find any solution so please do not point me out that look at
similar posts that has been posted previously.
I hope, i will get reasonable answer from you all experts as well as MSFT
engineers.
I hope to see some good pointers, idea, or trick to solve my problems.
You are most welcome for further clarification if you feel so.
Thanks in Advance.
Regards,
Mahesh Devjibhai Dhola
We are using Windows.Forms.DataGrid control in our application.
Let me explain what i have done so far so it will easy to understand the
problem:
We have used DataGridIconColumnStyle for one icon column and second is
DataGridTextBoxColumn for some other purpose
In second column i am showing Comboboxes when user clicks on it directly.
Now when user clicks on first column's icon, we are showing a big panel in
second column in the same row where we had Combobox previously.
On click on first column's icon image, big panel with some info shows in
second column's place. And at that time we are changing row height and it
changes the row height for that perticular row.
Up to this, it works fine.
Now when second column shows panel in one cell with height changed, a
vertical scroll bar appears.
But when i click on scrollbar to scroll downside, it scrolls whole first
column which has double height than total height of all other rows with
default height.
So problem is:
1. When i scroll down, it is not scrolling as per total height but it
scrolls up the whole first row in one stroke wich has very big height.
2. When it scrolls up the first row with big height value, it is not
scrolling up whole panel that i have put in the second column. It scrolls up
by just default row size.
So, what i want to do is:
1. Smooth scrolling of the vertical scroll bar
2. And with scrolling of datagrid rows, the panel should scroll also.
Before you write any comment, please have a look at the following lines,
1. I have searched all the relavant messages in the private and public
newsgroups but could not find the solution.
2. In most of the posts they have individual row height change problem which
we have done, so we have a problem of scrolling after changed height.
3. I have also searched many forums online and using google also. But i
could not find any solution so please do not point me out that look at
similar posts that has been posted previously.
I hope, i will get reasonable answer from you all experts as well as MSFT
engineers.
I hope to see some good pointers, idea, or trick to solve my problems.
You are most welcome for further clarification if you feel so.
Thanks in Advance.
Regards,
Mahesh Devjibhai Dhola