473,386 Members | 1,674 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,386 software developers and data experts.

dataGrid.Select() lack something?

Select() method highlights the row specified but does not make it the
current row. When querying CurrentRowIndex property, it still remains where
it was. How can I also change the current row index?
Thanks.
Nov 17 '05 #1
1 1163
Hi,

The CurrentRowIndex property is read/write, you can assign a new row index
to it. However, bear in mind that it always controls the row index of the
very parent table, even if you are currently viewing a child table by having
expanded child rows with a click on the [+] icon.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"___Newbie___" <d> wrote in message
news:ee**************@TK2MSFTNGP14.phx.gbl...
Select() method highlights the row specified but does not make it the
current row. When querying CurrentRowIndex property, it still remains
where
it was. How can I also change the current row index?
Thanks.


Nov 17 '05 #2

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

Similar topics

3
by: MrMike | last post by:
I'll try to initially ask this question without posting too much detail. I have an asp.net datagrid that lists each row twice. What could cause this? If you require additional information, please...
0
by: Gamze | last post by:
Hi, How can i get values from datagrid to combobox and should select the same name as in datagrid row on the combobox control In my vb.net windows application ,i have combobox which is...
2
by: Craig S | last post by:
I believe the problem is definately a lack of understanding on my part about how postbacks work, but here goes... In my Page_Load method I bind my data from a SQL database to a datagrid - works...
1
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object....
3
by: Amy | last post by:
I'm having trouble getting some data into a datagrid. It works fine for the results of the first SELECT in the stored procedure, but not therafter. Here's the error I get: "A field or property...
3
by: Tim Wallace | last post by:
I am using the asp:datagrid on an aspx page. I thought that I was able to select items in the grid, similar to a list box (i.e. having the whole row highlighted). Am I mistaken? Or am I just...
3
by: Jim Bancroft | last post by:
Hi, I have a DataGrid that contains an ItemTemplate. Within the ItemTemplate I have a DropDownList. The relevant code looks like this: <asp:datagrid id="DataGrid1" runat="server">...
1
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get...
2
by: Gummy | last post by:
Hello All, I have a webpage that has two dropdown listboxes. Based on what is selected in these dropdown listboxes, it filters a DataGrid . That works fine. In the DataGrid , when I go to edit...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.