Highlight row in datagrid

Results 1 to 2 of 2

Thread: Highlight row in datagrid

  1. #1
    Join Date
    Dec 1969

    Default Highlight row in datagrid

    how can i highlight a row in datagrid using mouse click(on web form)?.<BR>Firstly i use this code below:<BR>e.Item.Attributes.Add("onclick", "javascript__doPostBack(&#039;" & "DataGrid1:" & "_ctl" & (e.Item.ItemIndex + 2) & ":_ctl0&#039;,&#039;&#039;)")<BR><BR>But this code can&#039;t function well in template column.Can i know why?<BR><BR>How can i use client side programming to highlight the row without post back to the server?10q for ur advice. <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Highlight row in datagrid

    i&#039;m not sure what you are trying with that doPostBack stuff, but i can help you out on the javascript/client-side coloring:<BR><BR>http://www.morningz.com/test/dghighlight.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts