this is also for infragistic datagrid examle i hope this will help you
if(UG_ElectionChest.DisplayLayout.Bands[loop].Columns["_ID"].Hidden==false)
{
UG_ElectionChest.DisplayLayout.Bands[loop].Columns["_ID"].Hidden =true;
UG_ElectionChest.DisplayLayout.Bands[loop].Columns["ChestCheck"].Hidden
=true;
UG_ElectionChest.DisplayLayout.Bands[loop].Columns["State_ID"].Hidden =true;
}