Hey Raghupathirao,
(I would use switch on "roleid")
Anyway, is looks like it might be something with your function:
_objDataSet = (DataSet)_objMasters.fnGetData();
did you make sure that you get the right
_objDataSet
back on that call?
* btw, I would use "switch-case" on "roleid" there
Cheers,
Edo