By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

DataGrid AutoScroll

P: n/a
Hi,
First, happy new year 2004 :-)

I have a datagrid that displays 10 rows.
I would like when I add new rows the datagrid automatically scrolls showing
the 10 last rows.
Currently, the new rows are added but I have to use the scroll bar to see
them.
Thanks for your suggestions.

Stan
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Can you try using the Select Method to select the last added row ? that way
you would automatically have the last 10 rows displayed
HTH
Manasvin
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
First, happy new year 2004 :-)

I have a datagrid that displays 10 rows.
I would like when I add new rows the datagrid automatically scrolls showing the 10 last rows.
Currently, the new rows are added but I have to use the scroll bar to see
them.
Thanks for your suggestions.

Stan

Nov 20 '05 #2

P: n/a
Hi Mansvin,
I don't want to select the 10 last added rows and display them.
In fact, I have a winform that contains a datagrid and some textboxes that
allow the users to add datas to the datagrid.
My datagrid displays 10 rows and when the user adds more than 10 rows he can
not see the last row he added because
the scrollbar doesn't automatically move and he has to move manually the
scrollbar to see the last row he adds.

So, how can I avoid this ?

Stan

"msnews.microsoft.com" <ma******@hotmail.com> a écrit dans le message de
news:u1**************@TK2MSFTNGP10.phx.gbl...
Can you try using the Select Method to select the last added row ? that way you would automatically have the last 10 rows displayed
HTH
Manasvin
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
First, happy new year 2004 :-)

I have a datagrid that displays 10 rows.
I would like when I add new rows the datagrid automatically scrolls

showing
the 10 last rows.
Currently, the new rows are added but I have to use the scroll bar to see them.
Thanks for your suggestions.

Stan


Nov 20 '05 #3

P: n/a
The Select allows u to select a paraticular row. If you select the last row
you added after the add button event, the grid should automatically scroll
to focus on the new selected record

HTH

Manasvin

"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Mansvin,
I don't want to select the 10 last added rows and display them.
In fact, I have a winform that contains a datagrid and some textboxes that
allow the users to add datas to the datagrid.
My datagrid displays 10 rows and when the user adds more than 10 rows he can not see the last row he added because
the scrollbar doesn't automatically move and he has to move manually the
scrollbar to see the last row he adds.

So, how can I avoid this ?

Stan

"msnews.microsoft.com" <ma******@hotmail.com> a écrit dans le message de
news:u1**************@TK2MSFTNGP10.phx.gbl...
Can you try using the Select Method to select the last added row ? that

way
you would automatically have the last 10 rows displayed
HTH
Manasvin
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
First, happy new year 2004 :-)

I have a datagrid that displays 10 rows.
I would like when I add new rows the datagrid automatically scrolls

showing
the 10 last rows.
Currently, the new rows are added but I have to use the scroll bar to see them.
Thanks for your suggestions.

Stan



Nov 20 '05 #4

P: n/a
you could also try setting the currentcell property to a cell on the new row

Manasvin

"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Mansvin,
I don't want to select the 10 last added rows and display them.
In fact, I have a winform that contains a datagrid and some textboxes that
allow the users to add datas to the datagrid.
My datagrid displays 10 rows and when the user adds more than 10 rows he can not see the last row he added because
the scrollbar doesn't automatically move and he has to move manually the
scrollbar to see the last row he adds.

So, how can I avoid this ?

Stan

"msnews.microsoft.com" <ma******@hotmail.com> a écrit dans le message de
news:u1**************@TK2MSFTNGP10.phx.gbl...
Can you try using the Select Method to select the last added row ? that

way
you would automatically have the last 10 rows displayed
HTH
Manasvin
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
First, happy new year 2004 :-)

I have a datagrid that displays 10 rows.
I would like when I add new rows the datagrid automatically scrolls

showing
the 10 last rows.
Currently, the new rows are added but I have to use the scroll bar to see them.
Thanks for your suggestions.

Stan



Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.