We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Auto number column

Thread ID:

Created:

Updated:

Platform:

Replies:

150914 Jan 24,2020 05:39 AM UTC Jan 24,2020 05:57 AM UTC WinForms 1
loading
Tags: SfDataGrid
Tom Krieg
Asked On January 24, 2020 05:39 AM UTC

Can I add an auto-number column in sfdatagridview? I want to number each row from 1 to n automatically and allocate the next number to a new row.

Farjana Parveen Ayubb [Syncfusion]
Replied On January 24, 2020 05:57 AM UTC

Hi Tom, 
 
Thank you for using Syncfusion controls. 
 
We suspect that you need to add the column in SfDataGrid like below, this can be achieved by using RowHeader and SfDataGrid.DrawCell event in SfDataGrid. Please refer the below screen shot and UG link, 
 
 
 
 
If we misunderstood your requirement, please provide more information regarding the requirement. This would help us to proceed further. 
 
Regards, 
Farjana Parveen A 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon