PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework DataGrid & Horizontal Scroll Bar

Reply

DataGrid & Horizontal Scroll Bar

 
Thread Tools Rate Thread
Old 12-11-2007, 09:12 AM   #1
vijay
Guest
 
Posts: n/a
Default DataGrid & Horizontal Scroll Bar


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
Old 12-11-2007, 09:16 PM   #2
Arun
Guest
 
Posts: n/a
Default Re: DataGrid & Horizontal Scroll Bar

Use HitTestInfo to find out the click on the datagrid is on he
Description filed,
http://groups.google.com/group/micr...18fdd4e956a5763

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

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off