Click here to Skip to main content
15,894,896 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Luc Pattyn5-Mar-09 7:14
sitebuilderLuc Pattyn5-Mar-09 7:14 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Luc Pattyn5-Mar-09 8:04
sitebuilderLuc Pattyn5-Mar-09 8:04 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Jon Rista5-Mar-09 10:27
Jon Rista5-Mar-09 10:27 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Luc Pattyn5-Mar-09 10:45
sitebuilderLuc Pattyn5-Mar-09 10:45 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Jon Rista5-Mar-09 12:18
Jon Rista5-Mar-09 12:18 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Ben Cocker5-Mar-09 22:54
Ben Cocker5-Mar-09 22:54 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Jon Rista5-Mar-09 6:35
Jon Rista5-Mar-09 6:35 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Ben Cocker5-Mar-09 6:54
Ben Cocker5-Mar-09 6:54 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Dave Kreskowiak5-Mar-09 7:40
mveDave Kreskowiak5-Mar-09 7:40 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Dragonfly_Lee5-Mar-09 18:12
Dragonfly_Lee5-Mar-09 18:12 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Pete O'Hanlon5-Mar-09 10:57
mvePete O'Hanlon5-Mar-09 10:57 
QuestionHow to use a COM Interface Dll within C# code??? Pin
lane0p25-Mar-09 6:18
lane0p25-Mar-09 6:18 
AnswerRe: How to use a COM Interface Dll within C# code??? Pin
Yusuf5-Mar-09 7:56
Yusuf5-Mar-09 7:56 
AnswerRe: How to use a COM Interface Dll within C# code??? Pin
Dragonfly_Lee5-Mar-09 18:20
Dragonfly_Lee5-Mar-09 18:20 
GeneralRe: How to use a COM Interface Dll within C# code??? Pin
lane0p25-Mar-09 23:29
lane0p25-Mar-09 23:29 
GeneralRe: How to use a COM Interface Dll within C# code??? Pin
Dragonfly_Lee6-Mar-09 2:41
Dragonfly_Lee6-Mar-09 2:41 
GeneralRe: How to use a COM Interface Dll within C# code??? Pin
lane0p26-Mar-09 4:45
lane0p26-Mar-09 4:45 
QuestionHow to get the value from a variable and use it eg Form.VariableValue Pin
MarkB1235-Mar-09 5:53
MarkB1235-Mar-09 5:53 
AnswerRe: How to get the value from a variable and use it eg Form.VariableValue Pin
Xmen Real 5-Mar-09 5:57
professional Xmen Real 5-Mar-09 5:57 
GeneralRe: How to get the value from a variable and use it eg Form.VariableValue Pin
MarkB1235-Mar-09 8:06
MarkB1235-Mar-09 8:06 
QuestionHow to link the current website to your textbox ? Pin
YiXiang_895-Mar-09 5:52
YiXiang_895-Mar-09 5:52 
QuestionOledbException when trying to Insert values in two combobox Pin
haroon19805-Mar-09 5:44
haroon19805-Mar-09 5:44 
Hi, Here is below code as i am trying to populate two combobox for different values but getting OledbException while running:

I have two tables called
Packing and Products
Packing=id,name
Products:id,prodname,price,packing [defined by number]

I have setup relation between them in MSAccess which is done..

Product.Packing=Number
Packing.PackingName=Text

Code:

private void Form1_Load(object sender, EventArgs e)
        {
            
            string sql ="SELECT distinct ProductName FROM Products";
            string sql2 = "SELECT  pac.PackingName FROM Products prod,Packing pac where prod.Packing=pac.PackingName ";
                        
                        DataSet ds=new DataSet();
            
                        try 
                        {
                                database = new OleDbConnection(connectionString);
                database.Open();
                        }
                        catch (Exception x)
                        {
                                MessageBox.Show(x.Message);
                        }
                        
                        OleDbDataAdapter adp=new OleDbDataAdapter(sql,database);
            adp = new OleDbDataAdapter(sql2,database);
            
                        adp.Fill(ds,"ProductName");
            adp.Fill(ds,"PackingName");
                                                        
                        foreach (DataRow dr in ds.Tables[0].Rows) 
                        {
                                comboBox3.Items.Add(dr[0].ToString()) ;
                comboBox1.Items.Add(dr[1].ToString());
                                        
                        }
            
 
            }


Any help please...Thanks,
AnswerRe: OledbException when trying to Insert values in two combobox Pin
Yusuf5-Mar-09 8:07
Yusuf5-Mar-09 8:07 
GeneralRe: OledbException when trying to Insert values in two combobox Pin
haroon19805-Mar-09 12:24
haroon19805-Mar-09 12:24 
GeneralRe: OledbException when trying to Insert values in two combobox Pin
haroon19805-Mar-09 23:52
haroon19805-Mar-09 23:52 

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.