//
you're reading...
Uncategorized

ButtonColumn with “Select” CommandName in ASP.NET Datagrid

Create Datagrid, and create ButtonColumn as column:

<asp:ButtonColumn HeaderText="Grouping" Text="Grouping" CommandName="Select" Visible="False">
 <ItemStyle HorizontalAlign="Center" ForeColor="#C42711" />
 </asp:ButtonColumn>

In ASP.NET code (VB):

Protected Sub <DataGridName>_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles <DataGridName>.ItemCommand
   Dim row As DataRow
   Dim strTemp As String
   lblMessage.Visible = False
   tblStatusDownload.Visible = False
   GroupingData_Thread()
End Sub

Sub GroupingData_Thread()
     'method to start our phrase builder method executing
     'on a new thread.
     Dim myThread As Thread = New Thread(AddressOf GroupingData)
     myThread.Priority = ThreadPriority.Lowest
     '//start the new thread
     myThread.Start()
 End Sub

Private Sub GroupingData()
  'Action
End Sub

About berbagisolusi

Berbagi merupakan sebuah bentuk simbol keikhlasan untuk membantu dan menolong, sedangkan solusi adalah cara menyelesaikan masalah. Setiap manusia pasti mengalami masalah, tetapi kita tidak perlu mengalami masalah yang sama jika orang lain pernah mengalami dan kita tahu hal tersebut.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers

December 2011
M T W T F S S
« Nov   Jan »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives

Web Statistic

Blog Stats

  • 149,580 hits
%d bloggers like this: