473,480 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataGrid - scroll row into visible area by code?

Hi newsgroup,

Is it possible to scroll a System.Web.UI.WebControls.DataGrid
by code so that a certain row shows up in the visible area?

As yet I have only managed to select a certain row through
DataGrid.SelectedIndex=nn, but that doesn't automatically
result in the row being displayed in the visible area.

Can someone help me with this, please?
Any help highly appreciated.

Regards,
Frank
Feb 22 '06 #1
2 2379
Found a solution myself - no further support necessary.
Frank
Hi newsgroup,

Is it possible to scroll a System.Web.UI.WebControls.DataGrid
by code so that a certain row shows up in the visible area?

As yet I have only managed to select a certain row through
DataGrid.SelectedIndex=nn, but that doesn't automatically
result in the row being displayed in the visible area.

Can someone help me with this, please?
Any help highly appreciated.

Regards,
Frank

Feb 23 '06 #2
mike_k
1 New Member
I have the same issue with datagridview control and wonder if you have share you solution with me. Thanks in advance.


Found a solution myself - no further support necessary.
Frank
[color=blue]
> Hi newsgroup,
>
> Is it possible to scroll a System.Web.UI.WebControls.DataGrid
> by code so that a certain row shows up in the visible area?
>
> As yet I have only managed to select a certain row through
> DataGrid.SelectedIndex=nn, but that doesn't automatically
> result in the row being displayed in the visible area.
>
> Can someone help me with this, please?
> Any help highly appreciated.
>
> Regards,
> Frank
>
>[/color]
May 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5894
by: Bill Sonia | last post by:
It seems whenever I set a DataGrid.DataSource = DataTable (vb.net) to populate a datagrid, the scroll bars on the datagrid default to disabled. And the only way I can get them to enable is to...
0
4019
by: Faith | last post by:
I found code on www.codeproject.com. Here is a sample it is called DataGridColumnDropDown. I modified it to use the text box when I wanted it to depended on a certain search criteria. Public...
3
1862
by: Igor Mendizabal | last post by:
Hello, We're doing our own datagrid based on the System.windows.forms.datagrid control, and are having some problems with horizontal scrolling. In general, we construct our datagrid adding a...
1
1708
by: RA | last post by:
Hi I wonder if anyone tried this or know if it has been fixed. I am using vs .net 1.1 and have a windows form. In the form I have a DataGrid with the following format: 3 first Columns are of...
3
5301
by: Hans [DiaGraphIT] | last post by:
how can I keep track of the first visble line in my datagrid when I drag the vertical scrollbar up or down? To clairfy my need... An example: I wish to set CurrentRowIndex to be the first...
9
3925
by: web1110 | last post by:
Hi y'all, I have resized the columns in a DataGrid and I want to set the width of the DataGrid to fit the columns. Just summing the column widths is too short due to the grid and gray row...
6
2727
by: Agnes | last post by:
I understand it is impossible, but still curious to know "Can I freeze several column in the datagrid, the user can only scroll the first 3 columns (not verical), for the rest of the coulumn, it is...
6
4333
by: Bob The Builder | last post by:
I have a custom-built datagrid for windows forms. I overrode the scrollbars in it because I wanted to draw my own (basically, they're skinned). As a result, I handle all scroll events and calls. ...
1
1073
by: Frank Lehmann | last post by:
Hi newsgroup, Is it possible to scroll a System.Web.UI.WebControls.DataGrid by code so that a certain row shows up in the visible area? As yet I have only managed to select a certain row...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6929
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.