|
-
Nov 12th, 2007, 01:00 PM
#1
Thread Starter
New Member
[2005] FirstDisplayedCell
Hi, everyone
I have a problem, with a datagridview, I am selecting a cell programatically,
the change og cell is done well, but is not showed in the screen, I mean, if the selected cell is out of the showed area of the datagridview, the view of the datagridvies does not change.
anyone can help me please?, this is my code
Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
Me.BindingContext(Me.BindingSourceCatInsumos).EndCurrentEdit()
If e.ColumnIndex = 0 Then
Me.DataGridView1.CurrentCell = Me.DataGridView1.Item(1, Me.DataGridView1.CurrentCell.RowIndex)
DataGridView1.FirstDisplayedCell = Me.DataGridView1.Item(1, Me.DataGridView1.CurrentCell.RowIndex)
End If
thank you in advance.
Eduardo Castillo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|