473,471 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to set the topmost row item in a datagrid control

Hi,

i want to set the topmost row displayed in a datagrid control but can't find
the command for it.
Before there was the .setfirstrow property,

but in this datagrid (framework 1.1) control i can't find it?

thanks.
Nov 20 '05 #1
2 988
Hi Willie,

The DataGrid doesn't have a public method to do this. Below are links to two
entries on George Sheperd's Windows Forms FAQ that show how to use
inheritance to allow scrolling to a particular row and finding out the
top/left cell in the grid. Hopefully you can combine these to get what you
need.

http://www.syncfusion.com/faq/winforms/search/895.asp
http://www.syncfusion.com/faq/winforms/search/880.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Willie wjb" <wj****@nomail.nl> wrote in message
news:Om**************@TK2MSFTNGP10.phx.gbl...
Hi,

i want to set the topmost row displayed in a datagrid control but can't find the command for it.
Before there was the .setfirstrow property,

but in this datagrid (framework 1.1) control i can't find it?

thanks.

Nov 20 '05 #2
thanks!

strange that this is no default property!

"Rob Windsor [MVP]" <rw******@NO.MORE.SPAM.bigfoot.com> wrote in message
news:OL**************@tk2msftngp13.phx.gbl...
Hi Willie,

The DataGrid doesn't have a public method to do this. Below are links to two entries on George Sheperd's Windows Forms FAQ that show how to use
inheritance to allow scrolling to a particular row and finding out the
top/left cell in the grid. Hopefully you can combine these to get what you
need.

http://www.syncfusion.com/faq/winforms/search/895.asp
http://www.syncfusion.com/faq/winforms/search/880.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Willie wjb" <wj****@nomail.nl> wrote in message
news:Om**************@TK2MSFTNGP10.phx.gbl...
Hi,

i want to set the topmost row displayed in a datagrid control but can't

find
the command for it.
Before there was the .setfirstrow property,

but in this datagrid (framework 1.1) control i can't find it?

thanks.


Nov 20 '05 #3

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

Similar topics

0
by: Sajjadul Hakim | last post by:
Hello Everyone, When i add a DataGrid to a form, the TopMost property of the form becomes invalid; i.e. even if the TopMost property is set to "true" the form does not stay on top of other...
2
by: martin | last post by:
Hi, I am iterating through the dataitems in a datagrid and producing and xml document, If a particular cell in the datagrid has a textbox control or a datagrid control in it then I have no...
3
by: Tim::.. | last post by:
Can someone please tell me how I go about preselecting an item in a drop drown list when I click the Edit Command in a datagrid? I have tried the following but it doesn't work for me! I would...
4
by: Chris | last post by:
Using: DataGrid1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.ItemCommand is there a way to find a specific item in the...
3
by: louise raisbeck | last post by:
Hi, I have been on this for hours and just cannot work it out. I have a datagrid. I set the edititem index to a row to edit, that works. However if i want to put a value into this textbox it wont...
2
by: Luis Esteban Valencia Muñoz | last post by:
I have a datagrid that displays editable text fields (2 different price fields) and a checkbox in every row. It has a "SaveChanges" button at the bottom, which, when pressed, looks at every...
3
by: Skowronek | last post by:
What is the best method to obtain a data value from a parent datagriditem from a child datagrid - datagrid footer item command event handler? Here is the layout of my asp.net controls ...
1
by: SamSpade | last post by:
I learned about the TopMost property from a recent post which solved some problems. But I have a situation where a control wants to make the form it is on be the topmost. It could raise an...
15
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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,...
1
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...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.