Want to anchor a textbox directly over a DataGridView column.

Question:

HI.

I am using vb.net 2005

I have a DataGridView. I have been able to dynamically create and align textboxes over the columns in my datagrid.  The problem is that the datagrid is wider than the screen.    If the user scolls right, then the textboxes remain fixed while the datagrid columns move left.

I was hoping to anchor the each textbox to it’s respective column.    Is that the correct approach.    I do not know how to do that.

Or, should I be looking at the scrollbar movement as an indicator of how movement?

Solution:

the best way for this is to place datagridview in a panel
on the panel change autoscroll=true and then on datagridview set autosize(rowsandcolumns)=t

rue

this should take care of your problem

digg delicious stumbleupon technorati Google live facebook Sphinn Mixx newsvine reddit yahoomyweb
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...