private void FillGridAvail() { _listConnectionsAvail = CentralConnections.GetNotForGroup(ConnectionGroupCur.ConnectionGroupNum); gridAvail.BeginUpdate(); gridAvail.ListGridColumns.Clear(); GridColumn col; col = new GridColumn("Database", 320); gridAvail.ListGridColumns.Add(col); col = new GridColumn("Note", 300); gridAvail.ListGridColumns.Add(col); gridAvail.ListGridRows.Clear(); GridRow row; for (int i = 0; i < _listConnectionsAvail.Count; i++) { row = new GridRow(); if (_listConnectionsAvail[i].DatabaseName == "") //uri { row.Cells.Add(_listConnectionsAvail[i].ServiceURI); } else { row.Cells.Add(_listConnectionsAvail[i].ServerName + ", " + _listConnectionsAvail[i].DatabaseName); } row.Cells.Add(_listConnectionsAvail[i].Note); //row.Tag=_listConnections[i]; gridAvail.ListGridRows.Add(row); } gridAvail.EndUpdate(); }