Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 20:06
C#Coudou9-Sep-07 20:06 
GeneralRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 20:08
Assaf829-Sep-07 20:08 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 20:12
C#Coudou9-Sep-07 20:12 
GeneralRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 20:14
Assaf829-Sep-07 20:14 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 20:47
C#Coudou9-Sep-07 20:47 
GeneralRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 22:35
Assaf829-Sep-07 22:35 
Questionhelp needed for Dictionary concept Pin
Parvai9-Sep-07 17:21
Parvai9-Sep-07 17:21 
AnswerRe: help needed for Dictionary concept [modified] Pin
Are Jay9-Sep-07 18:37
Are Jay9-Sep-07 18:37 
I have two different ways:
// Cleaner less controll over the dictionary
private Dictionary<<string, double>> innerTable;
private Dictionary<<string, Dictionary<<string, double>>>> outterTable;

public DataAccessLayer()
{
  innerTable = new Dictionary<<string,double>>();
  outterTable = new Dictionary<<string, Dictionary<<string, double>>>>();

  innerTable.Add( "stringKey", 12312.012 );
  outterTable.Add( "anotherStringKey", innerTable );
}

// Longer but you'll define both dictionaries
// and how all the methods work.
public class UsingMyNewCollections
{
  // default constructor
  public UsingMyNewCollections()
  {
    InnerDictionary inner = new InnerDictionary();
    inner.Add( "StringKey", 1213.0123D );


    OutterDictionary outter = new OutterDictionary();
    batchTable.Add( "SomeKeyString", outter );
  }
}

public class OutterDictionary : IDictionary<<string, InnerDictionary>>
{
  // private field for the class
  private Dictionary<<string, InnerDictionary>> m_outterDictionary;

  // default constructor
  public OutterDictionary()
  {
    m_outterDictionary = new Dictionary<<string, InnerDictionary>>();
  }

  public void Add( string key, InnerDictionary value )
  {
    // Validation on passed in values
    // ...

    // Add your value
    m_outterDictionary.Add( key, value );
  }

  #region IDictionary<<string,MyTable>> Members
  // code
  #endregion

  #region ICollection<<KeyValuePair<<string,MyTable>>>> Members
  // code
  #endregion

  #region IEnumerable<<KeyValuePair<<string,MyTable>>>> Members
  // code
  #endregion

  #region IEnumerable Members
  //code
  #endregion
}

public class InnerDictionary : IDictionary<<string, double>>
{
  // private field for the class
  private Dictionary<<string, double>> m_innerDictionary;

  // default constructor
  public InnerDictionary()
  {
    m_innerDictionary = new Dictionary<<string, double>>();
  }

  public void Add( string key, double value )
  {
    // Validation on passed in values
    // ...

    // Add your value
    m_innerDictionary.Add( key, value );
  }

  #region IDictionary<<string,double>> Members
  // code
  #endregion

  #region ICollection<<KeyValuePair<<string,double>>>> Members
  // code
  #endregion

  #region IEnumerable<<KeyValuePair<<string,double>>>> Members
  // code
  #endregion

  #region IEnumerable Members
  // code
  #endregion
}

MSDN on using the DictionaryBase.Dictionary[^]


I'm listening but I only speak GEEK.

Questioneliminate 50Hz noise in ECG.. Pin
ashwiny9-Sep-07 16:33
ashwiny9-Sep-07 16:33 
AnswerRe: eliminate 50Hz noise in ECG.. Pin
I.explore.code9-Sep-07 19:04
I.explore.code9-Sep-07 19:04 
Questionseparating Enum types Pin
Amar Chaudhary9-Sep-07 11:12
Amar Chaudhary9-Sep-07 11:12 
AnswerRe: separating Enum types Pin
Colin Angus Mackay9-Sep-07 13:27
Colin Angus Mackay9-Sep-07 13:27 
AnswerRe: separating Enum types Pin
Amar Chaudhary9-Sep-07 13:28
Amar Chaudhary9-Sep-07 13:28 
QuestionDataGridView Pin
Assaf829-Sep-07 11:00
Assaf829-Sep-07 11:00 
QuestionRe: DataGridView Pin
T.EDY9-Sep-07 18:36
T.EDY9-Sep-07 18:36 
QuestionRe: DataGridView [modified] Pin
Assaf829-Sep-07 19:26
Assaf829-Sep-07 19:26 
AnswerRe: DataGridView [modified] Pin
T.EDY9-Sep-07 19:49
T.EDY9-Sep-07 19:49 
Questionarray of bit in c#.... Pin
mr.mohsen9-Sep-07 10:45
mr.mohsen9-Sep-07 10:45 
AnswerRe: array of bit in c#.... [modified] Pin
Jelle Hissink9-Sep-07 10:54
Jelle Hissink9-Sep-07 10:54 
AnswerRe: array of bit in c#.... Pin
Nissim Salomon9-Sep-07 11:01
Nissim Salomon9-Sep-07 11:01 
AnswerRe: array of bit in c#.... Pin
Istvan40411-Sep-07 2:03
Istvan40411-Sep-07 2:03 
QuestionSerialization vs Binary File Pin
Mark F.9-Sep-07 10:35
Mark F.9-Sep-07 10:35 
AnswerRe: Serialization vs Binary File Pin
Jelle Hissink9-Sep-07 10:52
Jelle Hissink9-Sep-07 10:52 
GeneralRe: Serialization vs Binary File Pin
Mark F.9-Sep-07 11:30
Mark F.9-Sep-07 11:30 
GeneralRe: Serialization vs Binary File Pin
Jelle Hissink9-Sep-07 12:06
Jelle Hissink9-Sep-07 12:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.