Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
622
Multiple Rows insert is not working..
posted

Hi All,

I need to insert multiple rows into a web grid. I am using a for loop to do the same. Here its inserting only one row. The code below is provided below":

UltraGridRow rwInsert = new UltraGridRow();

for (iCount = 0; iCount < 10; iCount++)

SampleGrid.Rows.Insert(iSelectedItems[0], rwInsert);

Help me out to implement this..

 Regards,

Abhi

 

  • 622
    Verified Answer
    posted

    Did some thinking and found the to implement this ..

      for (iCount = 0; iCount < 10; iCount++)

     {

            UltraGridRow rwInsert = new UltraGridRow();

    SampleGrid.Rows.Insert(iSelectedItems[0], rwInsert);

    Regards,

    Abhi