473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Showing Row Number in DataGridView

JB
Hi All,

Does anybody know how to (automatically) show the Row Number in the
row header of a DataGridView?
Or even how to display any information at all in the row header.

Thanks & Regards
JB
Aug 20 '08 #1
1 6047
I believe so Row Header always shows the Current selected Row Pointer.
Incase if you want to see Row # on the Left most column, then do not show
Row Header for that grid, Define new Column with index 0, and type of Editor
as Label / Style Pushbutton. and then set the caption property as the Row #.

"JB" <jb*********@gmail.comwrote in message
news:e1**********************************@d45g2000 hsc.googlegroups.com...
Hi All,

Does anybody know how to (automatically) show the Row Number in the
row header of a DataGridView?
Or even how to display any information at all in the row header.

Thanks & Regards
JB

Aug 20 '08 #2

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

Similar topics

1
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...
2
by: kristian | last post by:
Hi all I have a datagridview, and I want it to show and enable editing of a table in my mysql database. I get the results from the sql-query into the dataset, and when I view the dataset in...
0
by: twigboy | last post by:
Hi all I have a strongly typed main form with a datagridview binded to an access database. On this main form I have a button that when clicked opens another form(open) to insert a new record into...
4
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi All, I have an application that fetch data thru a store proc and display in a datagrid, but after successful execution of proc the data grid is not visible.Please go thru the following code...
0
by: JB | last post by:
Hi All, I have a DataGridView with a column showing a combo box containing non binded values (i.e. I set the values in the Combo myself using ComboBoxColumn.Items.Add). I also want this Combo...
1
by: akshaycjoshi | last post by:
Hello all, I am making one application where the user will make invoices of items in grain shop. Which component should i use in which the user will enter details of grain ? I tried datagridview...
2
by: sreenu123 | last post by:
Hi I already bind a DataGridView to a databse. My DataGridView is showing column names as it is in the table. I want to show user-friendly column names in the grid instead of column names in the...
0
by: ZSvedic | last post by:
Hi all, I need to display DataRows with RowState.Deleted inside DataGridView, in a way that such rows have strikethrough font. Here is the screenshot how it should look like:...
3
by: Andrus | last post by:
I have DataGridView in virtual mode containing 3500 rows. In code below, assigning to RowCount value to 3500 takes 8 seconds. CPU usage goes high at this time. Stepping by F11 into user code shows...
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
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...
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?

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.