Gridview Row Selection by any column VB: Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound e.Row.Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(DirectCast(sender, System.Web.UI.Control), "Select$" + e.Row.RowIndex.ToString())) End Sub aspx: <%@ Page Language="VB" AutoEventWireup="false" EnableEventValidation="false" CodeFile="GVEditonHighlight.aspx.vb" Inherits="sample_GVEditonHighlight" %>
ASP.NET || Javascript || Dataobject || Code Solutions Free Open Source code for Developers