Saturday, September 25, 2004

hmmmm........
Here is the String.Format codes which I wrote down.....

Private Sub grdData_ItemDataBound
if e.Item.ItemType <> List.ItemType.Header And e.ItemType <> List.ItemType.Footer
e.Items.Cells(0).text = "heh heh"
e.Items.Cells(1).text = "Edit
End Sub

.....
e.Items.cells(2).text = "Edit
e.Items.cells(2).text = String.Format(e.Items.Cells(2).text , e.Item.Cells(0).text)
......

This will result wif {0} being subsituted with "heh heh". I know dis is not sensible but dats how it works.