This is a migrated thread and some comments may be shown as answers.

UserDeletingRow event

1 Answer 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
AJing
Top achievements
Rank 1
AJing asked on 30 Nov 2011, 07:51 AM
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

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 02 Dec 2011, 04:55 PM
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.

Tags
GridView
Asked by
AJing
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or