473,412 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Datagrid New Record Position

MP
Hello

I want to know how programmatically put the focus on the new record row of a
datagrid

(the one with the "*" at the bottom of the grid)

TIA

MP
Nov 15 '05 #1
2 2537
The only thing that I can think of is this:
this.dataGrid1.Select(this.dataGrid1.VisibleRowCou nt);

Or if you are binding to a DataTable then this:

this.dataGrid1.Select(oTable.Rows.Count);

"MP" <m.******@codetel.net.do> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hello

I want to know how programmatically put the focus on the new record row of a datagrid

(the one with the "*" at the bottom of the grid)

TIA

MP

Nov 15 '05 #2
MP
Thanks, I got the idea with the Select method
this way it works exactly as I want;
dataGrid1.Select(dataSet1.Tables[0].Rows.Count);
dataGrid1.CurrentRowIndex = dataSet1.Tables[0].Rows.Count;
dataGrid1.Focus();

MP

"codewriter" <co**************@yahoo.com> wrote in message
news:Hy********************@news20.bellglobal.com. ..
The only thing that I can think of is this:
this.dataGrid1.Select(this.dataGrid1.VisibleRowCou nt);

Or if you are binding to a DataTable then this:

this.dataGrid1.Select(oTable.Rows.Count);

"MP" <m.******@codetel.net.do> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hello

I want to know how programmatically put the focus on the new record row
of a
datagrid

(the one with the "*" at the bottom of the grid)

TIA

MP


Nov 15 '05 #3

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

Similar topics

2
by: sdeezdaone | last post by:
I've got two tables that are linked by a field. The first table contains a list of items (like a checklist). The second table contains the corresponding a record for each user and each checklist...
4
by: Glenn Owens | last post by:
I have a DataGrid web control which I've dynamically populated with template columns to be used for bulk-editting. Generally, all of the columns are textbox and/or dropdownlist child controls. ...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
9
by: John Hernry | last post by:
I have been watching the dotnet newsgroups for a couple of weeks now and scouring the net looking for a solution to my datagrid find functionality. With no luck. I am hoping that you can help me....
0
by: HS1 | last post by:
Hello all I use a DataGrid to present the data of an Access database table ("Clients") using DataAdapter and DataSet (ds) -----------------------------------------------------------...
2
by: John Huang | last post by:
I would like to use datagrid's keydown event to capture the "Ctrl+D" when users press this key. But it did not work. What did I miss? (I have already set the form keypreview to true) Private...
1
by: karups | last post by:
Hi I have binded a dataset to my datagrid. Datagrid is present inside a >DIV></DIVtag of specific height. Only 5 records will be visible at a time when i edit the 10th record, the page...
0
by: slinky | last post by:
I'm using VS2003 VB.net/ASP.net and have a Datagrid on an .ASPX page that is successfully displaying the records I was expecting. The next step I want to do is to double-click a line (record) and...
0
by: slinky | last post by:
I'm using VS2003 VB.net/ASP.net and have a Datagrid on an .ASPX page that is successfully displaying the records I was expecting. The next step I want to do is to double-click a line (record) and...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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,...
0
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...

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.