How to highlight recently updated rows in gridview.?

Hi, i am using check box in my gridview control for multiple edit. I can edit my gridview rows which are selected. I would like to highlight rows after done editing. Is it possible.? If it is possible means how.? 

Hi Sesuraj,
Per my understanding, you want to change the background of the table within the gridview. You can use javascript to achieve this goal. See how to do it in the following link.
http://stackoverflow.com/questions/4283141/jquery-change-background-color.
By the way, this thread is related to ASP.NET. I recommend you post thread on that forum for effective response. Please refer to the below page.
http://forums.asp.net/.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Please give me idea how I highlight the gird row which have

    Sir
    I have gird with 5 column
    Vno
    Code
    Dept
    Date
    Amount
    Sir my need is which record have above 5000 amount that color read and other color blue
    It means above 5000 highlight in grid
    Please give me idea how I highlight the gird row which have above 5000 maount
    Thank
    aamir

    PROCEDURE pr_Set_VA (p_VA IN VARCHAR2) IS
    v_Feld VARCHAR2 (30);
    v_Item VARCHAR2 (61);
    v_Block VARCHAR2 (30);
    BEGIN
    v_Block := :SYSTEM.CURSOR_BLOCK;
    v_Feld := Get_Block_Property (v_Block, FIRST_ITEM);
    WHILE (v_Feld IS NOT NULL) LOOP
    v_Item := v_Block || '.' || v_Feld;
    Set_Item_Instance_Property (v_Item, CURRENT_RECORD, VISUAL_ATTRIBUTE, p_VA);
    v_Feld := Get_Item_Property (v_Item, NEXTITEM);
    END LOOP;
    END;

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • How to find newly updated rows in a table

    Hi..
    How to know newly updated rows in a table.
    Thanks in advance
    pal

    Or other good thing would be to add LAST_UPDATED column to your table, that can reflect the time the row gets updated.
    G

  • How to find  latest updating row in a table

    Hi
    How to find latest updating row in a table

    ADF 7 wrote:
    SELECT *  FROM Table WHERE lastupdTimestamp = (SELECT MAX(lastupdTimestamp) FROM Table)lastupdtimestamp - holds and date an time of an records when it last updation takes place in table.
    lastupdtimestamp is a column in my table.And how will this make sense in the scenario I've described, where UserA does an update before UserB, but commits the update after UserB's commited update? And add UserC and UserD and a 1000 more users to this scenario where concurrent updates happen.
    What actual time does this lastupdtimestamp contain and represent? And why? How is that lastupdtimestamp used in business logic and processing? Or is it just a silly-bugger-let's-add-somekind-of-time column to that table that essentially meaningless?
    Not saying that one should never add such a timestamp based column. Simply that one needs to understand WHAT it contains and it needs to be SENSIBLY used within the data model.
    However, in my experience such columns are often slapped on afterwards, never featured in the actual data model designed, and is then used without a second though that the database and its data is a multi-user and multi-process system. And things happen at the same time. And things overlap (serialisation is the exception - not the rule).

  • How to highlight a perticular row of a tabular form

    Hi everybuddy,
    I want to ask you 2 question.
    1> How can i highlight a perticular row of a form.The requirement is that when you click any row of a form it will be highlighted by yellow color or the background color will be green.
    2> I have a tabular form with five rows but when ever i want to add one button
    five consiqutive buttons are add automatically.They are in a stack manner.
    Can any body will please tell me how can i resolve two issues.

    don't duplicate:
    how to highlight a perticular row of a tabular form

  • Does anyone knows how to highlight every other row in numbers mac

    Does anyone knows how to highlight every other row in numbers and are there any good tutorials out there???

    Hi Lee,
    Select a non-header cell in the table.
    Open the Inspector and choose the Table Inspector.
    Click to check the 'Alternating Row Color' box in the Cell Background section.
    Click the Color well beside the check box to open the Color pane.
    Choose a colour.
    The alternating colours are applied only to the non-header rows and non-header columns in your table.
    Regards,
    Barry

  • How to highlight a single row in the Table components

    Hi,
    I am trying to do the following :
    1) Select a staff member's name from a dropdown list
    2) click on dropdown.name and show all the projects the member is working in a Table1
    3) when clicked on the project in Table1, show all team members of selected project in Table2.
    I would like to highlight the original staff member's name in Table2. Any ideas how I should go about doing it ? I tried the setSelected() method, but this selects all rows.
    TIA

    Winston has a blog on that topic:
    http://blogs.sun.com/roller/page/winston?entry=setting_table_column_style
    Lark

  • How to highlight the first row of a table

    When entering the form, how do I get the first row of the table to be highlighted when it has not been selected yet? There is already data in the table. Thanks.
    Allyson

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • How to highlight a specific row in a datagridview

    I am building a form with a datagridview and a button to add items to the datagrid view.  I would like to highlight (and optionally center and not select) the row of the just added item to verify for the user what has changed.  I can't seem to
    get it working:
     $dataGridView1.datasource = [System.Collections.ArrayList]@($list)
     foreach ($Row in $dataGridView1.Rows) {
           if ($Row.Name -eq $newitem.name) {
               dataGridView1.Rows[$Row.Index].DefaultCellStyle.BackColor = Yellow
           } else {
               dataGridView1.Rows[$Row.Index].DefaultCellStyle.BackColor = white;
    gives me no change.  I suspect the problem is my attempt to reference properties of the Row (e.g. $Row.name), but I don't know.
    I would really love a little assistance if anyone is willing.
    Thanks.

    Hello cascomp,
    Currently, I agree with Justin. You can change the cell background color when you add a item.
    I tried to accomplish your goal by myself, here is the result. I hope it can give you some ideas about your problem.
    If you have any suggestions or ideas, please feel free to tell me.
    Best Regards,
    Greg Gu
    Code:
    #Generated Form Function
    function GenerateForm {
    # Code Generated By: SAPIEN Technologies PrimalForms (Community Edition) v1.0.10.0
    # Generated On: 12/23/2011 9:44 AM
    #region Import the Assemblies
    [reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null
    [reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null
    #endregion
    #region Generated Form Objects
    $form1 = New-Object System.Windows.Forms.Form
    $textBox1 = New-Object System.Windows.Forms.TextBox
    $button1 = New-Object System.Windows.Forms.Button
    $dataGridView1 = New-Object System.Windows.Forms.DataGridView
    $InitialFormWindowState = New-Object System.Windows.Forms.FormWindowState
    #endregion Generated Form Objects
    #Generated Event Script Blocks
    #Provide Custom Code for events specified in PrimalForms.
    $button1_OnClick=
    $newData = $textBox1.Text
    $rowIndex = $dataGridView1.Rows.Add($newData)
    $dataGridView1.Rows.Item($rowIndex - 1).DefaultCellStyle.BackColor = "White"
    $dataGridView1.Rows.Item($rowIndex).DefaultCellStyle.BackColor = "LightGreen"
    $dataGridView1.FirstDisplayedScrollingRowIndex = $rowIndex
    $handler_textBox1_TextChanged=
    #TODO: Place custom script here
    $handler_form1_Load=
    $data = "blahblahblah"
    $dataGridView1.Columns.Add("ColumnA","Column A")
    $dataGridView1.Columns.Add("ColumnB","Column B")
    $dataGridView1.ReadOnly = $true
    $dataGridView1.MultiSelect = $false
    $dataGridView1.Rows.Add($data)
    $dataGridView1.Rows.Item(0).Selected = $false
    $OnLoadForm_StateCorrection=
    {#Correct the initial state of the form to prevent the .Net maximized form issue
    $form1.WindowState = $InitialFormWindowState
    #region Generated Form Code
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 262
    $System_Drawing_Size.Width = 284
    $form1.ClientSize = $System_Drawing_Size
    $form1.DataBindings.DefaultDataSourceUpdateMode = 0
    $form1.Name = "form1"
    $form1.Text = "Primal Form"
    $form1.add_Load($handler_form1_Load)
    $textBox1.DataBindings.DefaultDataSourceUpdateMode = 0
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 13
    $System_Drawing_Point.Y = 198
    $textBox1.Location = $System_Drawing_Point
    $textBox1.Name = "textBox1"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 20
    $System_Drawing_Size.Width = 259
    $textBox1.Size = $System_Drawing_Size
    $textBox1.TabIndex = 2
    $textBox1.add_TextChanged($handler_textBox1_TextChanged)
    $form1.Controls.Add($textBox1)
    $button1.DataBindings.DefaultDataSourceUpdateMode = 0
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 13
    $System_Drawing_Point.Y = 227
    $button1.Location = $System_Drawing_Point
    $button1.Name = "button1"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 23
    $System_Drawing_Size.Width = 259
    $button1.Size = $System_Drawing_Size
    $button1.TabIndex = 1
    $button1.Text = "Add"
    $button1.UseVisualStyleBackColor = $True
    $button1.add_Click($button1_OnClick)
    $form1.Controls.Add($button1)
    $dataGridView1.DataBindings.DefaultDataSourceUpdateMode = 0
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 12
    $System_Drawing_Point.Y = 12
    $dataGridView1.Location = $System_Drawing_Point
    $dataGridView1.Name = "dataGridView1"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 170
    $System_Drawing_Size.Width = 260
    $dataGridView1.Size = $System_Drawing_Size
    $dataGridView1.TabIndex = 0
    $form1.Controls.Add($dataGridView1)
    #endregion Generated Form Code
    #Save the initial state of the form
    $InitialFormWindowState = $form1.WindowState
    #Init the OnLoad event to correct the initial state of the form
    $form1.add_Load($OnLoadForm_StateCorrection)
    #Show the Form
    $form1.ShowDialog()| Out-Null
    } #End Function
    #Call the Function
    GenerateForm
    Test result:
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to Highlight the selected row of table

    Hi All,
    I have a result table. I want the selected row to be highlighted in orange color.
    The properties of the table are as follows :
    rowSelectable : true
    selectionChangeBehaviour : auto
    selectionMode : auto
    Please let me know what am I missing.
    Nikhil

    Hi Nikhil,
                 We too encountered this problem in EP 6.0. The code is correct. Actually
    int index=wdContext.nodeSales_Orders1().getLeadSelection();
    is enough.
    But this is not the problem. It is the problem with  either browser or Portal Runtime.
    Is your version EP 6.0? Is this a problem for all tables or only this table? Check with other browsers like Mozilla..(or different IE versions).
    regards,
    Siva

  • How to highlight a modified row in module pool

    hi frnds,
         Is it possible to highlight a row that is modified in a  ztable using module pool...

    I have created a ztable-'zpk_table' from which i take the values  n pass it to an internal table-'itab'...
    i modify these values using a modify screen created in module pool..
    after modifying i want the modified row to be highlighted in the next table control screen...

  • How to find latest updated row in a table

    Hi
    Here I have command that display updated time.But I Need which row was lastly updated (show particular row) in that table.
    select scn_to_timestamp(max(ora_rowscn))
    from employee;

    First of all, SCN to timestamp mapping exists for a short period of time, so if change is relatively old you'll get ORA-08181:
    SQL> select max(ora_rowscn) from emp;
    MAX(ORA_ROWSCN)
           22622685
    SQL> select scn_to_timestamp(max(ora_rowscn)) from emp;
    select scn_to_timestamp(max(ora_rowscn)) from emp
    ERROR at line 1:
    ORA-08181: specified number is not a valid system change number
    ORA-06512: at "SYS.SCN_TO_TIMESTAMP", line 1
    SQL> Anyway, based on SCN we can find out which BATCH of table row modifications was committed last. But you can't find out which modification withing that BATCH was made last.
    SY.

  • How can i programatically update row

    hi All,
    i have created a AgencyApproval view object that contains attribute like(agencycode,approve_status,approve_by,approve_hier)
    i have drag drop this vo as ADF table and select only agencycode and approve_status and not select approve_by and approve_hier field.
    now i want when i update approve_status filed and press commit button approve_by field value programatically handle. and update.
    by default approve_by column contain 'nul' but when i change into approve_status field that contain previous value'N' to 'A'l

    You already did it.
    protected void prepareForDML(int i, TransactionEvent aTransactionEvent)
                if (i != EntityImpl.DML_DELETE)
                         ViewObjectImpl vo = (ViewObjectImpl)this.getDBTransaction().findViewObject("payemptaskVo");
                         Row row = vo.first();// assumed that the data you want to access exist in the first row
                         setAttribute ("hier", row.getAttribute("hierarchy");
                       super.prepareForDML(i, aTransactionEvent);
            }

  • How to remove recent update

    Someone in my family installed the latest Mozilla 25.0.1 on my computer, which has deleted my Norton toolbar, which is not compatible with the newest Mozilla. How do I go back to what I had before?

    hello, according to norton the toolbar is compatible with all firefox versions up to the currently released version. please run the norton liveupdate utility repeatedly & until all components are up-to-date. in addition make sure that the toolbar is enabled under ''firefox > addons > extension'' afterwards.
    for more information please refer to https://community.norton.com/t5/Norton-Toolbar-Norton-Identity/Firefox-25-Support-for-Norton-Toolbar/td-p/1041991

Maybe you are looking for