Rowupdating e keys

Imagine that when i choose to edit a row and make some changes.. Values[index] Regards Allen, Thats exactly what i mean by "Custom Datasource" :) Sorry for not to use the right expression. so that i could recover it in edit mode and read data from the normal and edit mode...

Controls(index) ------ Controls in the Table Cell You can loop through the Grid View's rows and cells to get whatever you want. Regards Well, What i need is to have the old and the new values of the current edited record so i can keep a log of the record changes... My problem is the Old values, even with data Keys i cant make it because it is supposed to be there only the fields that are key for the grid right? I have tried to serialize to viewstate the datarow in normal state...

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

Connection = conn2 sql = "SET DATEFORMAT dmy; SELECT * FROM XXXX " cmd. Execute Reader() Dim Temp Staff Key As Integer Dim Temp Post Key As Integer Dim Temp Shift Date As Date Time Dim Temp Start Time As Date Time Dim Temp End Time As Date Time Dim Temp SL As String Dim Temp Roster Key As Integer Dim Temp VL As String Dim Temp ML As String Dim Temp PH As String Dim Temp APH As String Dim Temp TOIL As String Dim Temp Others As String Dim Temp Shift Type As Integer Dim Temp Submitted By As Integer Dim dt As New Data Table() dt. Add(New Data Column("Staff Name", Get Type(String))) dt. Add(New Data Column("Post Code", Get Type(String))) dt. Add(New Data Column("Staff Key", Get Type(Int32))) dt. Add(New Data Column("Post Key", Get Type(Int32))) 'Monday dt. Add(New Data Column("Col1_Roster Key", Get Type(Int32))) dt. Add(New Data Column("Col1_Shift Date", Get Type(Date Time))) dt. Add(New Data Column("Col1_Start Time", Get Type(Date Time))) dt. Add(New Data Column("Col1_End Time", Get Type(Date Time))) dt. Add(New Data Column("Col1_SL", Get Type(String))) dt.

Add(New Data Column("Col1_VL", Get Type(String))) dt.

Add(New Data Column("Col1_PH", Get Type(String))) dt. So you can add a hidden field to each row to hold the old value and retrieve values through Find Control("control Name") method.

www.femidapravo.ru

9 Comments

  1. Pingback:

  2. eric   •  

    Their dating profiles are accurate; they're all genuinely single. Our highly-trained Dating Consultants take the care to meet every prospective Oxford dating member, so you can be sure that wherever you are dating in Oxfordshire (which includes dating in Banbury, dating in Thame and dating in Bicester), RSVP members are genuinely single and the dating profiles we present are accurate and insightful.

  3. eric   •  

    10 Use A Fan For Subtle Flirting beyond giving world dozens english language masterpieces inventing countless words (including word countless), william shakespeare, ever trending stories.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>