public void Refresh()
 {
     StateManagerDal dal = new StateManagerDal();
     ChannelDal channelDal = new ChannelDal();
     string rowIndex = dal.FindScannerIndexNoByStateCode("01")["ROW_INDEX"].ToString();
     gridControl.DataSource = channelDal.FindScokChannel(rowIndex);
 }
 public void Refresh(string index)
 {
     StateManagerDal stateManagerDal = new StateManagerDal();
     DataRow rowIndex = stateManagerDal.FindScannerIndexNoByStateCode(index);
     gridControl.DataSource = stateManagerDal.FindScannerStateByIndexNo(rowIndex["ROW_INDEX"].ToString(), rowIndex["VIEWNAME"].ToString());
 }