Click here to Skip to main content
15,917,506 members
Home / Discussions / C#
   

C#

 
AnswerRe: Advantages of using virtual method in base class? Pin
OriginalGriff7-Apr-14 0:37
mveOriginalGriff7-Apr-14 0:37 
GeneralRe: Advantages of using virtual method in base class? Pin
Varun Thakur7-Apr-14 18:48
Varun Thakur7-Apr-14 18:48 
AnswerRe: Advantages of using virtual method in base class? Pin
pallelokanathareddy8-Apr-14 6:43
professionalpallelokanathareddy8-Apr-14 6:43 
QuestionHow to merger data from two sql databases that have a same structure ? Pin
taibc6-Apr-14 23:59
taibc6-Apr-14 23:59 
AnswerRe: How to merger data from two sql databases that have a same structure ? Pin
Peter Leow7-Apr-14 0:08
professionalPeter Leow7-Apr-14 0:08 
Questiondatagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 21:40
tom_ma6-Apr-14 21:40 
AnswerRe: datagridview doesn´t show the datasource Pin
V.6-Apr-14 22:13
professionalV.6-Apr-14 22:13 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 22:34
tom_ma6-Apr-14 22:34 
GeneralRe: datagridview doesn´t show the datasource Pin
V.6-Apr-14 22:45
professionalV.6-Apr-14 22:45 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 0:24
tom_ma7-Apr-14 0:24 
GeneralRe: datagridview doesn´t show the datasource Pin
V.7-Apr-14 1:19
professionalV.7-Apr-14 1:19 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 0:24
tom_ma7-Apr-14 0:24 
AnswerRe: datagridview doesn´t show the datasource Pin
OriginalGriff6-Apr-14 22:27
mveOriginalGriff6-Apr-14 22:27 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 22:38
tom_ma6-Apr-14 22:38 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff6-Apr-14 23:00
mveOriginalGriff6-Apr-14 23:00 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 23:08
tom_ma6-Apr-14 23:08 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff6-Apr-14 23:24
mveOriginalGriff6-Apr-14 23:24 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 0:14
tom_ma7-Apr-14 0:14 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 0:25
mveOriginalGriff7-Apr-14 0:25 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 1:38
tom_ma7-Apr-14 1:38 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 1:43
mveOriginalGriff7-Apr-14 1:43 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 1:55
tom_ma7-Apr-14 1:55 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 2:19
mveOriginalGriff7-Apr-14 2:19 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 4:04
tom_ma7-Apr-14 4:04 
C#
public partial class MainForm : Form
    {
        ParserClass file = null;
        UC_ChannelConfiguration list_to_dgv = new UC_ChannelConfiguration();        
        TestInfoClass testInfo = null;
        

        public MainForm()
        {
            InitializeComponent();
            testInfo = new TestInfoClass();
             
            testInfo.PropertyChanged += new PropertyChangedEventHandler(testInfo_PropertyChanged);
            tbTraceFile.DataBindings.Add(new Binding("Text", testInfo, "FileName"));
            pConfig.EnabledChanged += new EventHandler(pConfig_EnabledChanged);
            
        }

        void pConfig_EnabledChanged(object sender, EventArgs e)            
        {
             list_to_dgv.seedatagrid(testInfo.Information);
        }
        private void btlLoadfile_Click(object sender, EventArgs e)
        {           
            OpenFileDialog openFileDialog_file = new OpenFileDialog();          
            openFileDialog_file .RestoreDirectory = false;
            openFileDialog_file .Multiselect = false;

            if (openFileDialog_file .ShowDialog() == DialogResult.OK)
            {
                testInfo.FileName = openFileDialog_file.FileName;
                
            }           
        }          
    }

thank you very much for your time and for helping me.
i think with this, you have all my code, if you need any more, please say.
because i don´t know how to resolve this
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 4:42
mveOriginalGriff7-Apr-14 4:42 

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.