[psuedo code] private void OnCellFormat(object sender, DataGridViewCellFormattingEventArgs e) { type value = DataSet.Table[e.RowIndex].FieldName; }Seems to work, but I'm not sure if that is going to be a problem if the grid gets sorted. Haven't tested that yet.
private bool IsDisposed = false; public Outlook.Application oApp; public Outlook.NameSpace oNS; public Outlook.MAPIFolder oInbox; public Outlook.Items oItems; public Outlook.MailItem oMsg;
public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } /// Internal Destructor Code protected void Dispose(bool Disposing) { if(!IsDisposed) { if(Disposing) { // */* Clean up managed resources } // */* Clean up unmanaged resources //Log off. oNS.Logoff(); //Explicitly release objects. oMsg = null; oItems = null; oInbox = null; oNS = null; oApp = null; } IsDisposed=true; } /// Destructor ~cdsOutlook() { Dispose(false); } }I have them as unmanaged at the moment, but I think they are actually managed?