Re: Can I manually add items to a repeater after binding it?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Your best solution would be to spin through the datatable and add
.NewRow()s as needed to fill in the holes before binding.  LIfe will be
easier if you loop from the bottom to the top, since you won't need to
worry about jumping over the new rows as you insert them.

Thanks for the suggestion. The way I have it at the moment (written since posting) is that I pull out a DataReader and whizz through that, populating a DataTable as I go. Along the way, I look for gaps and add new rows as needed.


What's the easiest way to go through the DataTable itself? I was trying to find out how to do this, but couldn't find a clear example. I'm sure creating a new DataTable and copying the info over into it isn't very efficient, but it was the only way I could work out how to do it.

Thanks

--
Alan Silver
(anything added below this line is nothing to do with me)
.



Relevant Pages

  • Re: Change the FOR loop top
    ... If you start from the bottom and work up, you're life will be much easier: ... > I have a For loop that delets some rows from a sheet. ...
    (microsoft.public.excel.programming)
  • Re: Can only access Mac by IP
    ... I am so sick of people on newsgroups having so little of a life that ... Too bad if it makes you sick. ... It certainly is not my problem if you are too lazy to move the heavy, heavy cursor all the way down the many fathoms to the bottom of the reply. ... I find it highly ironic that the information you ask for that prompted my reply (i.e., OS X workgroup settings) would have been pretty easy to find in your reply if you had taken a few moments to read through the previous message. ...
    (comp.sys.mac.misc)
  • Re: bottom 25% of population now better off than top 25% were in 1961
    ... But to really claim that those at the bottom are 'definitely ... The kind of lives that people lived in the late fifties was nothing like ... Its about nutrition, life expectancy, ... And yet children are suffering because their parents no longer have time for them, marriages and relationships ditto, and the majority of women say they wish they had they had the choice to stay at home and undertake traditional housewives tasks. ...
    (uk.politics.misc)
  • Re: List etiquette question
    ... "bottom posting" (quote interspersed with new material ... for Usenet news and Internet mailing lists. ... The rule is designed to make life easier for readers: ...
    (Fedora)
  • Re: bottom 25% of population now better off than top 25% were in 1961
    ... But to really claim that those at the bottom are 'definitely ... The kind of lives that people lived in the late fifties was nothing like ... This isnt just about 'manufactured goods' which you ... Its about nutrition, life expectancy, ...
    (uk.politics.misc)