Não é mais possível fazer postagens ou usar assinaturas novas da Usenet nos Grupos do Google. O conteúdo histórico continua disponível.
Dismiss

datagrid scroll events

37 visualizações
Pular para a primeira mensagem não lida

Jesse Aufiero

não lida,
29 de set. de 2005, 13:09:5729/09/2005
para
Hello,

I need a way to detect when a user mouses up and down on a datagrid's
vertical scrollbar. However, the 'mouse down' and 'mouse up' events of the
datagrid do not fire when the scrollbar is clicked, and there are no
built-in 'scroll' events at all.

So how can this be accomplished?

Thanks!


Arun

não lida,
2 de out. de 2005, 23:19:0602/10/2005
para
Try this code

foreach ( Control c in dataGrid1.Controls )
{
Type t = c.GetType();
if ( typeof( System.Windows.Forms.HScrollBar ).IsAssignableFrom( t
) ||
typeof( System.Windows.Forms.VScrollBar ).IsAssignableFrom( t ) )
{
ScrollBar csb = (ScrollBar)c;
csb.ValueChanged +=new EventHandler(csb_ValueChanged);
}
}

Hope this helps,

Cheers,
Arun.

Jesse Aufiero

não lida,
16 de out. de 2005, 23:26:1216/10/2005
para
Perfecto. Thanks!

"Arun" <arunkuma...@gmail.com> wrote in message
news:1128309546.7...@g49g2000cwa.googlegroups.com...

0 nova mensagem