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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC 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: 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: The Lisp CPU
    ... If profiling shows there's a tight loop ... Because you're using dynamic binding, ... and re-bind them all with the most-crucial ...
    (comp.lang.lisp)
  • Re: DataTable Processing
    ... talking about binding, XML, or other things above and beyond what I ... > Use the DataTable.Select method to return an array of DataRows. ... > can loop through the array. ...
    (microsoft.public.dotnet.languages.vb)