Skip to main content

Posts

Showing posts with the label GridviewRow Selection

Gridview row Selection

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" %>