Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2690
Add new row always on top of the xamgrid
posted

Is it possible to add the new row always on the top of the datagrid

I came across this solution

http://forums.infragistics.com/forums/p/44535/243209.aspx#243209

but the Row_Added is not getting triggered

 

Parents Reply
  • 2690
    posted in reply to Stephen Zaharuk

    Attached is the sample code

     

    Table structure is as follows

    USE [Sample]
    GO

    /****** Object:  Table [dbo].[DummyTable]    Script Date: 05/31/2011 10:24:20 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    SET ANSI_PADDING ON
    GO

    CREATE TABLE [dbo].[DummyTable](
     [TID] [int] IDENTITY(1,1) NOT NULL,
     [Name] [varchar](50) NULL,
     [City] [varchar](50) NULL,
     [State] [varchar](50) NULL,
     [Age] [int] NULL,
     [Salary] [decimal](18, 0) NULL,
     [Saving] [decimal](18, 0) NULL
    ) ON [PRIMARY]

    GO

    SET ANSI_PADDING OFF
    GO

     

Children