Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
i need to display data in two datagridview from two datatable

C#
dtEntry = clsMain.tableBind("Exec [GrmnFins].[EntryRecord_rajshree_userwise] '" + DtEntry.Value.ToString("MM/dd/yyyy") + "' , '" + CboOprtrNm.Text + "'");
    // data is  coming from stored procedure  and CboOprtrNm.Text  is a combobox

                int im = CboOprtrNm.SelectedIndex;
                if (dtEntry.Rows.Count > 0)
                {

                    dtnew = clsMain.GenerateTransposedTable(dtEntry);

                    dtGridEntry.DataSource = dtnew;
                    GridAlternateColor(dtGridEntry);

                }
                dtQC = clsMain.tablebind(" Exec [GrmnFins].[ShrHldrOfflineQCRecord_rajshree_user] '" + DtEntry.Value.ToString("MM/dd/yyyy") + "' , '" + CboOprtrNm.Text +"'");

              //this is another table

                if (dtQC.Rows.Count > 0)
                {
                    dtnewQC = clsMain.GenerateTransposedTable(dtQC);
                    dtGridQC.DataSource = dtnewQC;
                    GridAlternateColor(dtGridQC);
                }


     // data is getting displayed on first datagridview and not on second datagridview and showing error..

//dtentry is a datetimepicker
// the exception is "The method or operation is not implemented"
Posted
Updated 8-Dec-14 18:33pm
v2
Comments
/\jmot 9-Dec-14 0:36am    
what is the Error??
/\jmot 9-Dec-14 0:37am    
Use...Databind()..Like..

dtGridEntry.DataSource = dtnew;
dtGridEntry.DataBind();
GridAlternateColor(dtGridEntry);
rajshree748 9-Dec-14 0:40am    
error is "The method or operation is not implemented" but with thid same code data is coming on datagridview..on the same code i am not getting on second one.error is on the second one 'dtGridQC'.
/\jmot 9-Dec-14 0:55am    
in which part of the code you are getting this error??
rajshree748 9-Dec-14 1:00am    
Error is after dtQC, when data is coming from database (i.e Exec [GrmnFins].[ShrHldrOfflineQCRecord_rajshree_user])

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900