A similar feature is available in .NET 2.0 - ListView.Columns.RemoveByKey().
This method accepts the column header's name instead of the text though.
"Julian Milano" <jd****@datafast.net.au> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
Can one be more specific, like:
LV.ColumnHeader("ThisColumnsText").Remove
Instead of cycling thru the collection of headers?
--
|
+-- Julian
|
"Siva M" <sh******@online.excite.com> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
Hi,
Try this:
For Each ch As ColumnHeader In LV.Columns
If (ch.Text = "<column_header_text") Then
LV.Columns.Remove(ch)
Exit For
End If
Next
"Julian Milano" <jd****@datafast.net.au> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
I need to delete a column of a LV by the header name- is that possible?
--
|
+-- Julian
|