how to put auto generated serial number in datagrid...!

datagrid , serialnumber , autogenreated of serial number Waco, United States
  • 12 years ago
    i want to put auto generated serial number in first column of datagrid...! so tell me where i put the code of autogenreated of serial number and remember i dont use auto nmber field of my database...! <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> DataGrid - Insert
  • 12 years ago
    hi Asad, Use a TemplateField with a label and in the label text in the html code will be <%# Container.DataItemIndex+1>. Regards, Royal
  • Post a reply

    Enter your message below

    Sign in or Join us (it's free).

    Contribute

    Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

    Our tools

    We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

    “The generation of random numbers is too important to be left to chance.” - Robert R. Coveyou

    Insert a new record...

    gm kilogram liter please select the unit