UserDeletingRow event

2 posts, 0 answers
  1. AJing
    AJing avatar
    19 posts
    Member since:
    Jun 2011

    Posted 30 Nov 2011 Link to this post

    Hi:
        I use userdeletingrow event to remove row .
       The BindingSource1 is the datasource of radgridview1.

       The radgridview's count is not zero but there is no row in screen.
       I want to use follow code to do somthing.
       if(radgridview1.Rows.Count==0)
       {
           //I want to do something here.
       }
       So, the if is not excute forever.

       What should I do ?

     Greetings
    Look forward to you
    Ajing
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 02 Dec 2011 Link to this post

    Hi Ajing,

    In this situation the most suitable row collection is ChildRows. For additional information about it, please refer to this article.

    Please let me know if you need further assistance.

    All the best,
    Julian Benkov
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Back to Top