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

C#

 
AnswerRe: Getting externel or internet IP Pin
Luc Pattyn12-Mar-09 18:03
sitebuilderLuc Pattyn12-Mar-09 18:03 
GeneralRe: Getting externel or internet IP Pin
Xmen Real 12-Mar-09 20:34
professional Xmen Real 12-Mar-09 20:34 
GeneralRe: Getting externel or internet IP Pin
Luc Pattyn13-Mar-09 2:17
sitebuilderLuc Pattyn13-Mar-09 2:17 
GeneralRe: Getting externel or internet IP Pin
Xmen Real 13-Mar-09 2:20
professional Xmen Real 13-Mar-09 2:20 
AnswerRe: Getting externel or internet IP Pin
dan!sh 12-Mar-09 20:25
professional dan!sh 12-Mar-09 20:25 
General[Message Deleted] Pin
S K Y12-Mar-09 15:31
S K Y12-Mar-09 15:31 
GeneralRe: this is only for Christian Graus PinPopular
Christian Graus12-Mar-09 16:25
protectorChristian Graus12-Mar-09 16:25 
General[Message Deleted] Pin
S K Y12-Mar-09 17:15
S K Y12-Mar-09 17:15 
GeneralRe: this is only for Christian Graus Pin
Christian Graus12-Mar-09 17:34
protectorChristian Graus12-Mar-09 17:34 
GeneralRe: this is only for Christian Graus Pin
Jeremy Falcon12-Mar-09 16:53
professionalJeremy Falcon12-Mar-09 16:53 
GeneralRe: this is only for Christian Graus Pin
Yusuf12-Mar-09 17:02
Yusuf12-Mar-09 17:02 
General[Message Deleted] Pin
S K Y12-Mar-09 17:07
S K Y12-Mar-09 17:07 
GeneralRe: this is only for Christian Graus Pin
Yusuf12-Mar-09 17:27
Yusuf12-Mar-09 17:27 
GeneralRe: this is only for Christian Graus Pin
S K Y12-Mar-09 17:29
S K Y12-Mar-09 17:29 
GeneralRe: this is only for Christian Graus Pin
Wes Aday12-Mar-09 17:56
professionalWes Aday12-Mar-09 17:56 
GeneralRe: this is only for Christian Graus Pin
0x3c012-Mar-09 21:18
0x3c012-Mar-09 21:18 
GeneralRe: this is only for Christian Graus Pin
S K Y12-Mar-09 22:38
S K Y12-Mar-09 22:38 
GeneralRe: this is only for Christian Graus Pin
0x3c013-Mar-09 3:52
0x3c013-Mar-09 3:52 
QuestionAutomatic Driver install with code Pin
zelect12-Mar-09 14:33
zelect12-Mar-09 14:33 
AnswerRe: Automatic Driver install with code Pin
Christian Graus12-Mar-09 16:26
protectorChristian Graus12-Mar-09 16:26 
Questiona problem of AjaxPro and js Pin
peacefulheart12-Mar-09 14:28
peacefulheart12-Mar-09 14:28 
Questionembedding a trackbar (windows application) to internet explorer Pin
tonyblair12-Mar-09 14:26
tonyblair12-Mar-09 14:26 
AnswerRe: embedding a trackbar (windows application) to internet explorer Pin
Christian Graus12-Mar-09 16:28
protectorChristian Graus12-Mar-09 16:28 
QuestionAdd data in gridview from multiple tables and combobox [modified] Pin
haroon198012-Mar-09 14:06
haroon198012-Mar-09 14:06 
Hi,
Basically i am trying to make a combobox in 2nd row of gridview...

two issues in below function:
Two things:
1. Now adapter2 is populated in gridview and i do not see any combobox instead i see only columns from adapter2

2. I do not see the adapter1 filled at all???

void fillData()
{
database = new OleDbConnection(connectionString);
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 Products.ProdID,Products.ProductName,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);
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

modified on Friday, March 13, 2009 4:51 AM

AnswerRe: Add data in gridview from multiple tables and combobox Pin
haroon198012-Mar-09 22:52
haroon198012-Mar-09 22: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.