Skip to content

Instantly share code, notes, and snippets.

View mattcan's full-sized avatar

Matthew Cantelon mattcan

View GitHub Profile
@mattcan
mattcan / commandcolumn_visibility.vb
Created January 17, 2012 21:44
DevExpress ASPxGridView CommandColumn Visibility
Private Sub theGrid_DataBound(ByVal sender as Object, ByVal e as System.EventArgs) Handles theGrid.DataBound
' Create a GridView object and cast the GridView object we're working on to it
Dim gv As ASPxGridView = TryCast(sender, ASPxGridView)
' Loop through the visible columns (as they are set in the ASP or somewhere else in your code)
For i As Integer = 0 To gv.VisibleColumns.Count
' Match the type of the current column to the GridViewCommandColumn type and
' then hide the column and break out of the loop
If TypeOf (gv.VisibleColumns(i)) Is GridViewCommandColumn Then
@mattcan
mattcan / FlipName.bas
Last active September 29, 2015 10:08
Flip "Lastname, Firstname" to "Firstname Lastname"
'''
' Note that Split always returns a 0-indexed array
'''
Option Explicit
Function flip_name(comma_sep_name As String)
Dim name_parts() As String
name_parts = Split(comma_sep_name, ",")

Developer Cheat Sheets

This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everyday and this Gist is the first bookmark on my list for quick and easy access.

I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 28/10/2014
  • Original post