PC Review


Reply
Thread Tools Rate Thread

DataGrid & Horizontal Scroll Bar

 
 
vijay
Guest
Posts: n/a
 
      12th Nov 2007
Hi All,

Environment: VS2005, VB.net , CF 2.0 with service pack 2

I am able to display data in the datagrid. there are 7 columns in the
grid. Delivery,Return,Description,Quantity,total quantity. the gird
displays first three columns Del,Return, Description (part of the
description is displayed). when user click on the Description column
Horizontal scroll bar Automatically adjusted to display Description
field. in this Delivery,return columns are moved to left side and user
can't see these fields.

My requirement:

When ever user clicks on the partically displayed Description field,
stop horizontal scroll bar changing to display selected column. only
when user manually scrolls horizontal scroll bar datagrid values has
to be scrolled horizontally.

 
Reply With Quote
 
 
 
 
Arun
Guest
Posts: n/a
 
      12th Nov 2007
Use HitTestInfo to find out the click on the datagrid is on he
Description filed,
http://groups.google.com/group/micro...8fdd4e956a5763

Add datagrid value changed scroll event and handle the event by
e.Handle = true;
http://groups.google.com/group/micro...f80ae526e13f72

Hope this helps,
Cheers,
Arun
HCL America.


On Nov 12, 1:12 am, vijay <vijaya.mo...@gmail.com> wrote:
> Hi All,
>
> Environment: VS2005, VB.net , CF 2.0 with service pack 2
>
> I am able to display data in the datagrid. there are 7 columns in the
> grid. Delivery,Return,Description,Quantity,total quantity. the gird
> displays first three columns Del,Return, Description (part of the
> description is displayed). when user click on the Description column
> Horizontal scroll bar Automatically adjusted to display Description
> field. in this Delivery,return columns are moved to left side and user
> can't see these fields.
>
> My requirement:
>
> When ever user clicks on the partically displayed Description field,
> stop horizontal scroll bar changing to display selected column. only
> when user manually scrolls horizontal scroll bar datagrid values has
> to be scrolled horizontally.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make the horizontal scroll scroll to end of page? trint Microsoft C# .NET 1 9th May 2007 09:07 PM
DataGrid Horizontal Scroll Bar problem Grant Smith Microsoft VB .NET 2 11th Jan 2005 08:17 PM
Datagrid horizontal scroll =?Utf-8?B?RGluY2VyIFV5YXY=?= Microsoft Dot NET Framework Forms 3 22nd Oct 2004 08:39 AM
DataGrid - Vertical/Horizontal scroll sumit Microsoft ASP .NET 3 18th Nov 2003 10:14 PM
datagrid horizontal scroll bar QT Microsoft Dot NET 0 31st Aug 2003 02:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 PM.