i think u r using dataset to bind the datagrid..
before assigning datasource to the dataset [ 'DataGrid1.DataSource = ds']
u have to check the value y or N.
just add this line before setting datasource to dataset
just spcify the column index as item.. if 'Y' returned as column 3 means u can specify item(3)
if(ds.tables(0).rows(0),items(0)='Y')
ds.tables(0).rows(0),items(0)='Leader'
else
ds.tables(0).rows(0),items(0)='Member'
endif
DataGrid1.DataSource = ds
ds.databind
if u have returned more than one row from DB, u can make a loop and do it..
===========
Ram
|