January 25, 2007 at 4:01 pm
· Filed under Visual Basic .NET
And, if you wan’t to change the text of a cell – then you’re able to use:
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Cells(2).Text = “This is my text”
End If
End Sub
Permalink
January 25, 2007 at 3:41 pm
· Filed under Visual Basic .NET
Hm… Actually took me some time to figure out how to change the headertext at runtime for a column in a gridview.
But after som searching I found:
Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
If e.Row.RowType = DataControlRowType.Header Then
e.Row.Cells(1).Text = “Show me the money”
End If
End Sub
But, why can’t I just, when binding the gridview use: GridView1.Columns(1).HeaderText = “Show me the money”
Permalink
January 23, 2007 at 11:39 pm
· Filed under Uncategorized
Having run my tech.pederborgpoulsen.dk blog for a while, I’m always curius to know, if someone (if any) visits my site, and what they actually look at, if the visit.
So, kind of by chance, i stumbled on wp-slimstat. It’s a simple word-press plugin, which you just upload to the plugin folder, activate in the plugin-editor, and you have statistics.
You could of course analyze the logfiles yourself – but, this is very very easy.
Permalink
January 23, 2007 at 10:44 am
· Filed under Uncategorized
Last night, a new version of wordpress was available. And, as always – it’s always without pain to upgrade.
Delete the old files (however I did’nt delete the wp-content directory, as I have uploaded some images, and the wp-config.php), uploaded the new files, and ran the upgrade-script. And ready to go.
Technorati tags:
wordpress Permalink