|
-
Jun 5th, 2007, 04:04 AM
#1
Thread Starter
Lively Member
DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Can anyone help,
I have 2 grids both populated and sorted. When i click a cell on the top grid, i want to be able to jump to a row on the bottom grid that may not be currently displayed without adjusting the sort order.
This is a windows datagrid in VB.NET 2005. I know the row, and i have tried using rowselected collection, however it doesnt display the row. Again, i dont NOT want to reorder the grid, i simply want to show the row.
-
Jun 5th, 2007, 04:10 AM
#2
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Is it a DataGrid or a DataGridView?
-
Jun 5th, 2007, 04:10 AM
#3
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Hi
Code:
Me.DataGrid1.CurrentRowIndex=pos
Me.DataGrid1.Select(Me.DataGrid1.CurrentRowIndex)
"The dark side clouds everything. Impossible to see the future is."
-
Jun 5th, 2007, 04:31 AM
#4
Thread Starter
Lively Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Thanks for the reply, i think i might be using DataGridView, not sure as its a wrapped row.
Could please give me an example for both DataGrid DataGridView.
-
Jun 5th, 2007, 04:39 AM
#5
Hyperactive Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Code:
me.DataGridView1.FirstDisplayedScrollingRowIndex = intRow
-
Jun 5th, 2007, 04:42 AM
#6
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
How about we don't waste our time providing a solution for a problem you don't have? Just tell us which it is. Click on it and look at the type specified in the combo box at the top of the Properties window, or mouse over its name in code and read the tool tip. If you don't know then it's almost certainly a DataGridView as the DataGrid is not available in the Toolbox by default, so you'd have had to add it specifically.
-
Jun 5th, 2007, 04:44 AM
#7
Thread Starter
Lively Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Thanksyou very much
-
Jun 5th, 2007, 05:15 AM
#8
Thread Starter
Lively Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Sorry had forgotten to mention it was a wrapped control
so it was hard to see what the underlying windows control was.
Had to find the source code for it etc.
thanks
-
Jun 5th, 2007, 05:21 AM
#9
Addicted Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Hi jmcilhinney
I want to know what is the meaning of wrapped control.
and how do you use it.
-
Jun 5th, 2007, 05:25 AM
#10
Hyperactive Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
 Originally Posted by sd1978
Hi jmcilhinney
I want to know what is the meaning of wrapped control.
and how do you use it.
It isn't jmcilhinney who has the wrapped control it is ragstta, and to be honest no matter how "wrapped" it is, if you use intellisense on the control - it will tell you what type it is anyway.
-
Jun 5th, 2007, 10:17 AM
#11
Thread Starter
Lively Member
Re: DataGrid wid 100s of rows, need to jump to ie scroll to specific row programaticaly
Yes very true it does.
My mistake apologies
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
|