473,549 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
+ 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.W ebControls.Data Grid
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.Select edIndex=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 2386
Found a solution myself - no further support necessary.
Frank
Hi newsgroup,

Is it possible to scroll a System.Web.UI.W ebControls.Data Grid
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.Select edIndex=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.W ebControls.Data Grid
> 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.Select edIndex=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
5916
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 manually resize a column width with the mouse (not very elegant). Anyone have any ideas how I could enable the datagrid scroll bars in my code? ...
0
4035
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 Class ExtendedSearchFieldValueColumnStyle Inherits DataGridTextBoxColumn Public WithEvents ColumnComboBox As ComboBox Public WithEvents...
3
1868
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 tablestyle and gridcolumnstyles to that tablestyle. If we have invisible columns, we add the gridcolumnstyle with Width = 0 (couldn't find any other...
1
1715
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 type text box and 5 last columns are of type checkbox(bool) I added some rows info. When the RowHeadersVisible = false here is the problem I see:...
3
5308
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 visible row in my datagrid while I drag the vertical scrollbar. Should I combine an MouseDown event with a scroll event?
9
3934
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 selection column on the left. I have the widths of the columns. What other values do I need to include in the DataGrid width? Thanx,
6
2738
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 freeze.
6
4347
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. I also have a row-selector column as the first column, and that needs to stay visible. Think Excel. However, if a user clicks a cell that is all...
1
1076
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 through DataGrid.SelectedIndex=nn, but that doesn't automatically result in the row being displayed in the visible area. Can someone help me with...
0
7472
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7986
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5391
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5114
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3518
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3499
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1965
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 we have to send another system
1
1083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.