I want to programatically select a row in the list and make it visible in
case the row is not already visible because of the length of the list
Thanks in advance,
Samuel 7 6216
Samuel Shulman wrote:
I want to programatically select a row in the list and make it visible in
case the row is not already visible because of the length of the list
Thanks in advance,
Samuel
I am actually about to do this myself, to implement a find feature for
a DataGridView.
You should be able to do this via DataGridView.CurrentCell
BTW, please do not rely on people reading the subject line of your
message. In fact, write the subject line *after* the message. I have no
idea why it is on top, encouraging people to title something they
haven't written yet.
B.
that works, thank you
I find that there is relatively little knowledge about this control which is
extremely useful
Samuel
"Brian Tkatch" <Ma***********@ThePentagon.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Samuel Shulman wrote:
>I want to programatically select a row in the list and make it visible in case the row is not already visible because of the length of the list
Thanks in advance, Samuel
I am actually about to do this myself, to implement a find feature for
a DataGridView.
You should be able to do this via DataGridView.CurrentCell
BTW, please do not rely on people reading the subject line of your
message. In fact, write the subject line *after* the message. I have no
idea why it is on top, encouraging people to title something they
haven't written yet.
B.
Samuel,
>
I find that there is relatively little knowledge about this control which
is extremely useful
I would not say so it is constantly growing, however especially Ken is
constantly putting more information about the DataGridView on our website. http://www.vb-tips.com/dbpages.aspx?IA=DG2
You can have a look at the CodeCamp button as well to see Ken's presentation
about the DataGridView
I hope this helps,
Cor
Samuel
"Brian Tkatch" <Ma***********@ThePentagon.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
>Samuel Shulman wrote:
>>I want to programatically select a row in the list and make it visible in case the row is not already visible because of the length of the list
Thanks in advance, Samuel
I am actually about to do this myself, to implement a find feature for a DataGridView.
You should be able to do this via DataGridView.CurrentCell
BTW, please do not rely on people reading the subject line of your message. In fact, write the subject line *after* the message. I have no idea why it is on top, encouraging people to title something they haven't written yet.
B.
On Thu, 10 Aug 2006 16:37:46 +0100, "Samuel Shulman" <sa************@ntlworld.comwrote:
>I want to programatically select a row in the list and make it visible in case the row is not already visible because of the length of the list
Thanks in advance, Samuel
If you know the RowIndex of the selected item:
Me.DataGridView.FirstDisplayedScrollingRowIndex = Value
Where value is the Row Index to be displayed at the first visible position
Gene
Brian and Samuel,
BTW, please do not rely on people reading the subject line of your
message. In fact, write the subject line *after* the message. I have no
idea why it is on top, encouraging people to title something they
haven't written yet.
Some newsreaders will try to find the same subject and place that in top of
an existing one.
(Which can be depending the options set for that newsreader and if it still
exist on the newsserver, but the latest is often with Google when the
subject is not good set).
Therefore it is not clever to use a Subject as "DataGridView" or by instance
"Help".
(In this way you can by instance reset the date and time by *newsgroup*
topposters. Don't confuse this with email topposters).
I hope this gives an idea,
Cor
gene kelley wrote:
On Thu, 10 Aug 2006 16:37:46 +0100, "Samuel Shulman" <sa************@ntlworld.comwrote:
I want to programatically select a row in the list and make it visible in
case the row is not already visible because of the length of the list
Thanks in advance,
Samuel
If you know the RowIndex of the selected item:
Me.DataGridView.FirstDisplayedScrollingRowIndex = Value
Where value is the Row Index to be displayed at the first visible position
Gene
Very nice. I think this is what i will use.
These names are so confusing. :)
B.
On 11 Aug 2006 06:32:29 -0700, "Brian Tkatch" <Ma***********@ThePentagon.comwrote:
> gene kelley wrote:
>On Thu, 10 Aug 2006 16:37:46 +0100, "Samuel Shulman" <sa************@ntlworld.comwrote:
>I want to programatically select a row in the list and make it visible in case the row is not already visible because of the length of the list
Thanks in advance, Samuel If you know the RowIndex of the selected item:
Me.DataGridView.FirstDisplayedScrollingRowIndex = Value
Where value is the Row Index to be displayed at the first visible position
Gene
Very nice. I think this is what i will use.
These names are so confusing. :)
B.
Yes, it is/was confusing. For years, this generally is commonly called "EnsureVisible" as is the
case with the ListView.
Gene This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: DraguVaso |
last post by:
Hi,
I'm using the DataGridView in VB.NET 2.0. The DataSource is a Generic List
of a custom class0: lstMyPersonnes = New List(Of clsPersonne).
When I add a new clsPersonne to lstMyPersonnes,...
|
by: dbuchanan |
last post by:
Hello,
Is this a bug?
Is there some kind of work around?
I want to add default values for a few columns in my datagridview
I found the "DefaultValuesNeeded" event for the datagridview
I...
|
by: Henok Girma |
last post by:
Hello Gurus,
I want to save the state of an unbound DataGridView on my Windows Form
application to an XML file so i can later load it back..
Basically, on my form I have a DataGridView, it's got...
|
by: Rich |
last post by:
Hello,
I am populating a datagridview from a datatable and filtering the number of
rows with a dataview object. Is there a way to retrieve the rows displayed
by the datagridview into a separate...
|
by: bob |
last post by:
Can anyone tell me the best way to update a dataset while it is being
edited/viewed in the DataGridView control? Is this something that
should be inserted into one of the grid's events? or should...
|
by: Mitchell S. Honnert |
last post by:
Is there an equivalent of the DataGrid's DataGridTableStyle for the
DataGridView? If not, is there an easy way to duplicate the
DataGridTableStyle's functionality for the DataGridView?
Here's...
|
by: =?Utf-8?B?TG9zdEluTUQ=?= |
last post by:
Hi All :)
I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView.
True DBGrid has a MultipleLines property that controls whether individual
records span multiple lines. Is...
|
by: jeastman - Hotmail |
last post by:
Hello world
Excuse, not to be written English and it helps me with a translator.
I am new programming in C#.
I made a control inheriting the DataGridView to be able to add controls done
by...
|
by: Andrus |
last post by:
I have DataGridView in virtual mode containing 3500 rows.
In code below, assigning to RowCount value to 3500 takes 8 seconds.
CPU usage goes high at this time.
Stepping by F11 into user code shows...
|
by: priyamtheone |
last post by:
I'm trying to make a datagridview column to act like a datetimepicker column (C#.Net 2005). These are the behaviours that the dgv should have:
1) Initially all the cells of the dtp column should be...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |