Gridview edit mode rowupdating

posted by | Leave a comment

i hope i can explain i drow i pic shows what i need but i think this permision to load here.In the template field I will Place a label or some controls, So that it’s very easy to access those controls in the code behind by using Find Control method. Item Template is the content to display for the items in the Template Field.To get the Primary Key reference we can use the Data Keys collection of the Grid View.This collection only requires the row index no and it will give us the primary key.In the Page_Load event, you simply load your data from the database and bind it with the Grid View control as shown below: For brevity I am not storing connection string in the web.config and also not using any Data Access Component.

These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.By using the Grid View Row object we can find the reference of any control in the row in which user is editing the data.In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.sir, it is realy good sample but i have a question. may be i have to control the door is open or not (suppose that 4 times in a yer i mean 3 month later again) a task.. checkdate (textbox with datetimepicker)/ /chkbox( if that time that task complate should check)/ / 2.checkdate/ /chkbox( if that time that task complate should check)/.....i want to insert this on database and and when showgrid if checkbox checked textbox (include date) should be enable false.not should be update.

Leave a Reply

david deangelo interviews with dating gurus craig