Tags » GridView

GridView Sorting ASP.NET

I have always hated Asp.NET GridView , it’s boring and stubborn , and i was asked to implement sorting for an already existing sharepoint portalĀ full of GridViews . 94 more words


Gridview to Data Table C#

Ada kalanya kita butuh data yang sudah di manipulasi di gridview, nah… kadang kita pengen tarik data tadi buat dijadiin lagi datatable. 88 more words


Hyperlinked Images in ASP.NET GridView (Open content in new page)

Solution : 1

TemplateField with Hyperlink and img Element

<asp:HyperLink runat=”server” NavigateUrl='<%# Eval(“PAGE_Or_PDF_URL”) %>’
<img src='<%# Eval(“Image_URL”) %>’ alt=”PDF IMAGE” />
</asp:HyperLink> 90 more words


MouseOver effect in gridview

Solution : 1

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
if (e.Row.RowType == DataControlRowType.DataRow)
e.Row.Attributes.Add(“onmouseover”, “this.originalcolor=this.style.backgroundColor;” + ” this.style.backgroundColor=’#0090CB’; this.style.color = ‘white'”);
e.Row.Attributes.Add(“onmouseout”, “this.style.backgroundColor=this.originalcolor; this.style.color = ‘black'”); 25 more words


Get the value of an OptionSet

I have requirement to get the what value is selected in OptionSet

The code can be used in plugin and for customer portal also.

The below i used for customer portal, to get the value and displayed in Grid view in Asp.net… 111 more words

Dynamics CRM 2013