Groups | Blog | Home
all groups > dotnet compact framework > january 2006 >

dotnet compact framework : For cells wider than the datagrid width only the end is displayed when selected...


SammyBar
1/27/2006 7:38:44 PM
Hi all,
My datagrid has two columns: a small one to hold the article's code, and a
wide one to hold the article name. The problem is the article name can be
too long, longer than the width of the grid. Then I choose the last column
width to be longer than the grid width. When I select the last column with
the pen, the datagrid shows "the end" of the last column, I mean it is only
visible the final of the last column instead of showing the beginning of the
column. I should scroll left to view the cell's beginning. As a consequence
of the fact that not all the article's name are long, many cells are
displayed empty when cell is selected. How can I make this wide column to be
displayed "from the beginning" when clicked?

Thanks in advance
Sammy

Sergey Bogdanov
1/30/2006 1:44:50 PM
You may try to position ScrollBar by yourself. Refer to this link how to
get HScrollBar object:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/msg/a94dc763ca30c3be?hl=en&


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


[quoted text, click to view]
AddThis Social Bookmark Button