auxploeb
asked on
Hide a separator in a datalist ASP.Net
With reference to: http://www.experts-exchang e.com/Prog ramming/La nguages/.N ET/ASP.NET /Q_2400575 1.html
Hi, can you please help more with Step 3? "After retrieving your data store off the record count and calculate IndexToClear like this"
Where do I put this in the code?
Thanks
Paul
Hi, can you please help more with Step 3? "After retrieving your data store off the record count and calculate IndexToClear like this"
Where do I put this in the code?
Thanks
Paul
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
get recordcount like this:
recordCount =e.AffectedRows;
recordCount =e.AffectedRows;
ASKER
ok, got that, thanks. Now how do I adapt this for my 3 column Datalist?
do you have some screeshot of datalist that can explain how it's looking right now and how you want it to look. my wild guess is divide by 3 instead of 2..so try
indextoclear = (recordCount / 3);
or to be generic: indextoclear = (recordCount / DataList1.RepeatColumns);
indextoclear = (recordCount / 3);
or to be generic: indextoclear = (recordCount / DataList1.RepeatColumns);
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And what was wrong...the question or the suggestions provided?
Though might not be exact solution, comments http:#33739188 and http:#33739610 were in right direction based on the info provided by OP.
ASKER
Open in new window