Click here to Skip to main content
15,850,265 members
Home / Discussions / C#
   

C#

 
QuestionAutomatic Driver install with code Pin
zelect12-Mar-09 15:33
zelect12-Mar-09 15:33 
AnswerRe: Automatic Driver install with code Pin
Christian Graus12-Mar-09 17:26
protectorChristian Graus12-Mar-09 17:26 
Questiona problem of AjaxPro and js Pin
peacefulheart12-Mar-09 15:28
peacefulheart12-Mar-09 15:28 
Questionembedding a trackbar (windows application) to internet explorer Pin
tonyblair12-Mar-09 15:26
tonyblair12-Mar-09 15:26 
AnswerRe: embedding a trackbar (windows application) to internet explorer Pin
Christian Graus12-Mar-09 17:28
protectorChristian Graus12-Mar-09 17:28 
QuestionAdd data in gridview from multiple tables and combobox [modified] Pin
haroon198012-Mar-09 15:06
haroon198012-Mar-09 15:06 
AnswerRe: Add data in gridview from multiple tables and combobox Pin
haroon198012-Mar-09 23:52
haroon198012-Mar-09 23:52 
QuestionAdd combox in gridview - Getting OledbException Pin
haroon198012-Mar-09 14:19
haroon198012-Mar-09 14:19 
Hi,
I get Oledb Exception:"No value given for one or more required parameters." at line below

adapter2.Fill(packDT); // error here on this line


Basically i am trying to make a combobox in 2nd row of gridview..

Also one more thing i need to add to my above post..that i need to select some columns from one table and then in one of the column of the gridview i need to add combobox in gridview...

OleDbDataAdapter adapter1 = new OleDbDataAdapter("select BillD.ProductName,BillD.ProductID,BillD.Saletype,BillD.InQty,BillD.SBtype,BillD.Dis1,BillD.Type,BillD.InPrice from BillDetails BillD", database);

OleDbDataAdapter adapter2 = new OleDbDataAdapter("Select P.ProductName,P.ProductID,Packing.PackingName from Packing INNER JOIN Products ON Packing.PackingID=Products.Packing", database);


void fillData()
        {
            database = new OleDbConnection(connectionS :( :confused:tring);
            database.Open();
            OleDbDataAdapter adapter1 = new OleDbDataAdapter("select BillD.ProductName,BillD.ProductID,BillD.Saletype,BillD.InQty,BillD.SBtype,BillD.Dis1,BillD.Type,BillD.InPrice from BillDetails BillD", database);
            OleDbDataAdapter adapter2 = new OleDbDataAdapter("Select P.ProductName,P.ProductID,Packing.PackingName from Packing INNER JOIN Products ON Packing.PackingID=Products.Packing", database);
 
            {
                DataGridViewComboBoxColumn dgridcolumn = new DataGridViewComboBoxColumn();
                DataSet ds = new DataSet();
                DataTable dt = new DataTable();
                DataTable packDT = new DataTable();
                adapter1.Fill(dt);
                dataGridView1.DataSource = dt;
                adapter2.Fill(packDT); // error here on this line
                ds.Tables.Add(packDT);
                dataGridView1.DataSource = ds;
                dataGridView1.DataMember = ds.Tables[0].TableName;
                dgridcolumn.DataSource = ds.Tables[0];
                dgridcolumn.ValueMember = ds.Tables[0].Columns[1].ColumnName.ToString();
 
 
            }

Thanks,

please help
AnswerRe: Add combox in gridview - Getting OledbException Pin
haroon198012-Mar-09 15:02
haroon198012-Mar-09 15:02 
QuestionIs it possible to receive key input into two controls simultaneously? Pin
Yellow_Yackets12-Mar-09 12:26
Yellow_Yackets12-Mar-09 12:26 
AnswerRe: Is it possible to receive key input into two controls simultaneously? Pin
Nagy Vilmos12-Mar-09 12:52
professionalNagy Vilmos12-Mar-09 12:52 
GeneralRe: Is it possible to receive key input into two controls simultaneously? Pin
Yellow_Yackets12-Mar-09 12:57
Yellow_Yackets12-Mar-09 12:57 
GeneralRe: Is it possible to receive key input into two controls simultaneously? Pin
Nagy Vilmos12-Mar-09 13:09
professionalNagy Vilmos12-Mar-09 13:09 
GeneralRe: Is it possible to receive key input into two controls simultaneously? Pin
Yellow_Yackets12-Mar-09 16:22
Yellow_Yackets12-Mar-09 16:22 
GeneralRe: Is it possible to receive key input into two controls simultaneously? Pin
Yellow_Yackets12-Mar-09 16:40
Yellow_Yackets12-Mar-09 16:40 
GeneralRe: Is it possible to receive key input into two controls simultaneously? Pin
Nagy Vilmos13-Mar-09 0:09
professionalNagy Vilmos13-Mar-09 0:09 
GeneralRe: Is it possible to receive key input into two controls simultaneously? Pin
Yellow_Yackets13-Mar-09 8:10
Yellow_Yackets13-Mar-09 8:10 
QuestionSplitting video into frames Pin
Payam Rastogi12-Mar-09 11:25
Payam Rastogi12-Mar-09 11:25 
AnswerRe: Splitting video into frames Pin
Ravadre12-Mar-09 12:37
Ravadre12-Mar-09 12:37 
Questionjoin pieces in an image Pin
Umangj12-Mar-09 10:54
Umangj12-Mar-09 10:54 
AnswerRe: join pieces in an image Pin
Nagy Vilmos12-Mar-09 11:00
professionalNagy Vilmos12-Mar-09 11:00 
GeneralRe: join pieces in an image Pin
Umangj12-Mar-09 11:07
Umangj12-Mar-09 11:07 
GeneralRe: join pieces in an image Pin
Nagy Vilmos12-Mar-09 12:00
professionalNagy Vilmos12-Mar-09 12:00 
AnswerRe: join pieces in an image Pin
Christian Graus12-Mar-09 11:23
protectorChristian Graus12-Mar-09 11:23 
GeneralRe: join pieces in an image Pin
Umangj12-Mar-09 11:31
Umangj12-Mar-09 11:31 

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.