CREATE TABLE [dbo].[tblOrder_Items] ( [Id] [int] IDENTITY(1, 1) NOT NULL ,[orderId] [int] NULL ,[product_id] [int] NULL ,[quantity] [int] NULL ,[discount] [nvarchar](50) NULL ,[total_price] [nvarchar](50) NULL ,[applydate] [nvarchar](50) NULL ,CONSTRAINT [PK_tblOrderdatail] PRIMARY KEY CLUSTERED ([Id] ASC) WITH ( PAD_INDEX = OFF ,STATISTICS_NORECOMPUTE = OFF ,IGNORE_DUP_KEY = OFF ,ALLOW_ROW_LOCKS = ON ,ALLOW_PAGE_LOCKS = ON ) ON [PRIMARY] ) ON [PRIMARY] GO
foreach (GridViewRow GR in GridView1.Rows) { if (GR.RowType == DataControlRowType.DataRow) { string myField = GR.Cells[1].Text; // You can also find grid view inside controls here TextBox tb = (TextBox)tt.FindControl("TextBox1"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)