J Julian Milano Jul 15, 2005 #1 I need to delete a column of a LV by the header name- is that possible?
S Siva M Jul 15, 2005 #2 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 I need to delete a column of a LV by the header name- is that possible?
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 I need to delete a column of a LV by the header name- is that possible?
J Julian Milano Jul 15, 2005 #3 Can one be more specific, like: LV.ColumnHeader("ThisColumnsText").Remove Instead of cycling thru the collection of headers?
Can one be more specific, like: LV.ColumnHeader("ThisColumnsText").Remove Instead of cycling thru the collection of headers?
S Siva M Jul 15, 2005 #4 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. Can one be more specific, like: LV.ColumnHeader("ThisColumnsText").Remove Instead of cycling thru the collection of headers?
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. Can one be more specific, like: LV.ColumnHeader("ThisColumnsText").Remove Instead of cycling thru the collection of headers?