Showing posts with label work. Show all posts
Showing posts with label work. Show all posts

Wednesday, July 16, 2008

Wednesday, July 9, 2008

Learned at work today

Enabling sorting of a gridview control (easy luckily):

Dim ds As New DataSet
'Call data method to populate dataset
ds = objData.whatever()
GridView1.DataSource = ds
If SortExpression <> "" Then
'Apply a sorting filter if applicable
Dim view As DataView = ds.Tables(0).DefaultView
view.Sort = SortExpression
GridView1.DataSource = view
End If

'Bind the data
GridView1.DataBind()

Thursday, July 3, 2008

Things I learned at work today

  1. Can pass querystring values into sql reporting services data parameters without any extra code as long as they have the same name. SQL Reporting Services tutorials
  2. Can override control properties set in skin file by using "StyleSheetTheme=" in the page directive instead of "Theme=". This assigns the same hierarchy as CSS formatting.