473,320 Members | 1,804 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,320 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 11857
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.