Hi
I have already databing repeat . Can i add more records after that
Thanks
Hi
I have already databing repeat . Can i add more records after that
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tuhin PaulRank #7 · 71.9K reputationPosted Jun 10, 2023, 7:26 AM EDT
List newRecords = GetNewRecords(); // Get the existing data source bound to the repeater control List existingData = (List)yourRepeater.DataSource; // Add the new records to the existing data source existingData.AddRange(newRecords); yourRepeater.DataSource = existingData; yourRepeater.DataBind();YourDataObject represents the type of your data object or entity. GetNewRecords() is a method that retrieves or generates the new records to be added. yourRepeater is the ID or reference to your repeater control.
Tuhin PaulRank #7 · 71.9K reputationPosted Jun 10, 2023, 7:27 AM EDT
Retrieve the new records from your data source or generate them programmatically.
Add the new records to the data source that is bound to your repeater control. The exact process for adding records to the data source depends on the programming language and framework you are using.
Rebind the repeater control to the updated data source. This will update the repeater with the new records.