Archive for January, 2007

Changing Gridview Column Datarow text at runtime

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

Comments

Changing GridView Column HeaderText at runtime

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”

Comments (15)

WordPress Blog Statistics

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.

Comments

New Version Of WordPress (2.1)

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:

Comments