Note that there are some explanatory texts on larger screens.

plurals
  1. POGridview daily updating
    primarykey
    data
    text
    <p>I currently have a Gridview in ASP.NET VB where you can select a row and the data will then be transported to the next page for entry purposes. My question is there an easy way where I can highlight the row after someone has entered information on this row and for the same day. So if someone enters data for a person today, then tomorrow the highlighting will go away the next calendar day. I appreciate any help. </p> <p>This is what i currently have.</p> <pre><code> Public Sub Get_GV() ' Fills Gridview with data selected from dropdown-area DSADT.SelectParameters("Area").DefaultValue = DDArea.SelectedValue Dim dv As DataView = DSconnect.Select(DataSourceSelectArguments.Empty) GridView1.DataSource = dv GridView1.DataBind() End Sub Private Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated ' Allows you to "select"/Highlight a row without a select button If e.Row.RowType = DataControlRowType.DataRow Then e.Row.Attributes("onmouseover") = "this.style.cursor='pointer';this.style.backgroundColor = '#87CEFF';" e.Row.Attributes("onmouseout") = "this.style.textDecoration='none';this.style.backgroundColor = '#FFFFFF';" e.Row.Attributes("OnClick") = Me.Page.ClientScript.GetPostBackClientHyperlink(Me.GridView1, "Select$" &amp; e.Row.RowIndex) End If End Sub Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Dim sb As New System.Text.StringBuilder() 'Submits data to next page Response.Redirect("RoundingEntry.aspx?Room=" &amp; GridView1.SelectedRow.Cells(1).Text &amp; "&amp;Name=" &amp; GridView1.SelectedRow.Cells(2).Text &amp; "&amp;Rounder=" &amp; DDRounder.SelectedValue &amp; "&amp;Area=" &amp; DDArea.SelectedValue) End Sub </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload