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

Display row number in DataGridView

Hi,
is it possible to display the Row number in the in the row selection column
in a DataGridView (this is the "column" before your first column...when you
click on it, it highlights the entire row).

also, i have put code in the SelectedIndexChange event of the DataGrid view
to display the current row out along with the total number of rows. but this
behaves weird, if i click around, sometimes the number displayed does not
match the display order of the row.

thanks for any feedback
Jul 21 '05 #1
1 11861
Hi,

Check out this link on 'modifying' the row headers:
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q896q

Regarding your second question; does your issue happen when you are
selecting a row after sorting the datagrid? Please explain in which scenario
this actually happens.

HTH,
Rakesh Rajan

"dimension" wrote:
Hi,
is it possible to display the Row number in the in the row selection column
in a DataGridView (this is the "column" before your first column...when you
click on it, it highlights the entire row).

also, i have put code in the SelectedIndexChange event of the DataGrid view
to display the current row out along with the total number of rows. but this
behaves weird, if i click around, sometimes the number displayed does not
match the display order of the row.

thanks for any feedback

Jul 21 '05 #2

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

Similar topics

0
by: dimension | last post by:
Hi, is it possible to display the Row number in the in the row selection column in a DataGridView (this is the "column" before your first column...when you click on it, it highlights the entire...
3
by: Lucky | last post by:
hi guys, it's me again. now days i'm learning DataGridView of .NET 2.0. i found that some of the features are quite attractive but sometimes they are not easy to modify and from that point our...
2
by: Ivan | last post by:
I have a class Foo which have two property. I have a thread that do some process and update class Foo int B. I have a datagridview on main form. this datagridview data source to this class Foo and...
0
by: Bruce HS | last post by:
I set DataGridView cell properties to ReadOnly = True and Visible = True, but don't see a property for Enabled (= False, which is what I'd do in a standard textbox). I don't see a Tab property to...
0
by: krigare | last post by:
There maybe a better way of doing this but I am attempting to display a list of objects and their respective properties using a datagridview. The object class is straight forward with several...
7
by: =?Utf-8?B?aWxy?= | last post by:
Hi I have a table in an sql database that contains data that has been encrypted using the DPAPI. What I am trying to achieve is to bind several controls on a vb 2005 windows form to those...
3
by: hzgt9b | last post by:
Using VS2005, VB.NET, I am developing a windows app that has a DataGridView. I want to enable the display of a context menu on this DataGridView only when a specific set of keys is also pressed...
2
by: rav500 | last post by:
I am using visual studio 2005, .NET2.0 I am reading xml data into a dataset and bind the it to a datagridview I have 2 tables in my xml that I would like to bind to the datagridview. Using...
0
by: joec | last post by:
I have a DataGridView with a DateTime column, which is filled with DateTime values. Everything displays perfectly, except for DateTime values that have a time value of 12:00:00 AM. In that case,...
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: 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
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...
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
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
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
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
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...
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...

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.