If u are checking if it contains invalid rows in web application then it is better to fire *DataGrid RowDataBound *Event rather than Leave Event..
It is better to fire this event...bcz it get called immediately after u assign datasource to datagrid...
In these u check it...
if (e.Row.RowType == DataControlRowType.DataRow)
{
//check u r conditions here...u can do it..u need do for loop here.. bcz it will loop as many times as the data in grid.It will help u check every row in datagrid.
}
Thanks & Regards
Viral Gandhi
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).