PDA

View Full Version : Dependent data grids


corbo950
02-10-2009, 12:01 AM
i have a set of data grids that are dependent on one another and i have a clause to make sure that a row is selected in the previous data grid which looks like this:

if(sessionGrid.selectedIndex != undefined)
{

}


and i get an warning which says:

1012: Variables of type int cannot be undefined. The value undefined will be type coerced to int before comparison.

How did do i make it go away?

drkstr
02-10-2009, 01:22 AM
Like this:

if(sessionGrid.selectedItem != null)
{

}

Best Regards,
~Aaron