dcsimg
Using a ListView ActiveX control
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   coding_man
Posted On:   Thursday, September 13, 2001 04:06 PM

I'm adding items to ListView control, but I'm having problems accessing the SubItems property. Here is what I have so far: var lstItem = lstMessages.ListItems.Add(); lstItem.Text = "text of listitem"; lstItem.SubItems[0] = "subitem 1"; I've already added 2 ColumnHeaders and i'm viewing in Report mode, and the above code works perfectly if I comment out the 3rd line. I can't seem to access the SubItem property at all. I've done this before with VBScript, but for my current project it needs to remain in JavaScript. Anyone tackled this problem before? Please help!    More>>

I'm adding items to ListView control, but I'm having problems accessing the SubItems property.
Here is what I have so far:

var lstItem = lstMessages.ListItems.Add();
lstItem.Text = "text of listitem";
lstItem.SubItems[0] = "subitem 1";


I've already added 2 ColumnHeaders and i'm viewing in Report mode, and the above
code works perfectly if I comment out the 3rd line.

I can't seem to access the SubItem property at all. I've done this before with
VBScript, but for my current project it needs to remain in JavaScript.


Anyone tackled this problem before? Please help!

   <<Less

Re: Using a ListView ActiveX control

Posted By:   xiaoyuandlg  
Posted On:   Monday, March 31, 2014 07:47 PM

Since I am a bit fresh in this area, I am not quite familiar with Active-X, don't know if there are some differences, and the advantages or disadvantages when it compared to the UI ListView control .

About | Sitemap | Contact