Edit Listview Subitem In Vb6 Code
Member 8214494 17-Oct-Oct-11 14:37EDIT:my bad, for some reason the application is adopting the en-US date encoding, forcing the date via some formatting fixes this.END EDITFirstly, wonderful extension of the list view! StehtimSchilf 12-Oct-11 1:0112-Oct-11 1:01HiI have a simple textbox in my ListViewEx. In the SubItemEndEditing event handler I check user's input. Now I simple like to replace all blanks to an empty string:// trim string input = this.editControls 1.Text;input = input.Replace( ' ', ' ');// not working:e.Item.SubItemse.SubItem.Text = input;// not working as well: this.editControls 1.Text = input;The problem is ListViewEx still displays the input as is, with all blanks, although I see during debugging input assignment has been done.This can't be difficult, but how do I achieve it?cheerioh & thxSiS. Sandhya Yamarthi 25-Mar-11 7:3825-Mar-11 7:38Hi,First of all, thank a lot for the code you provided.I want to modify this listviewEX as my listview has its items in the first column and sub items in the second column are not editable. So I want to set a text box as an editor control for the subitem that exists in the third column and a combobox for the subitem in the fourth column and so on.But when I tried your code, It just satrted implementing from the item in the first column it self.So can you please suggest me how to set the editor controls from which ever column I want other than first column?Thank you so much again!
Vb Net Listview Click Item
XtErMiNaToR102 26-Jan-11 4:1026-Jan-11 4:10Hi,First off, great control!Now to business, the control fires the SubItemEndEditing event whenever I send a message to the control (I'm sending the control a message to scroll vertically).I am firing this event from the SubItemEndEditing event listener.Any idea as to why this is happening and how I can work around this?Thanks!RegardsXtr-EditNevermind, the control checks specifically for those messages and cancels the edit, which in turn fires the event again.I will just put my scrolling functionality in the control itself.Thanks!