Click here to Skip to main content
15,899,634 members
Home / Discussions / C#
   

C#

 
GeneralRe: MSMQ Pin
S. Akif Kamal2-Jan-06 19:33
S. Akif Kamal2-Jan-06 19:33 
QuestionMigrate from VC++ to VC# Pin
OneSoftware1-Jan-06 22:51
OneSoftware1-Jan-06 22:51 
AnswerRe: Migrate from VC++ to VC# Pin
WillemM1-Jan-06 23:39
WillemM1-Jan-06 23:39 
AnswerRe: Migrate from VC++ to VC# Pin
Kevin McFarlane2-Jan-06 5:27
Kevin McFarlane2-Jan-06 5:27 
QuestionHow can I see the difference between two instances in debug? Pin
Gywox1-Jan-06 22:49
Gywox1-Jan-06 22:49 
AnswerRe: How can I see the difference between two instances in debug? Pin
S. Senthil Kumar2-Jan-06 4:21
S. Senthil Kumar2-Jan-06 4:21 
GeneralRe: How can I see the difference between two instances in debug? Pin
Gywox2-Jan-06 4:39
Gywox2-Jan-06 4:39 
Questiondatagrid problem Pin
steve_rm1-Jan-06 22:36
steve_rm1-Jan-06 22:36 
Hello,

I have a problem I hope you have help me with. I am using a datagrid for displaying products from a customer's shopping list. The shopping list is downloaded into a datagrid.

Table name: ShoppingList
Field names: ProductCode, ProductName, Price

Using the following code that works ok.
SqlConnection cnn = new SqlConnection("server=.; Database=ShoppingService; Integrated security = true");
SqlCommand cmd = cnn.CreateCommand();
SqlDataAdapter da = new SqlDataAdapter();
DataSet ds = new DataSet();

cmd.CommandType = CommandType.Text;
cmd.CommandText = "SELECT ProductName, Price FROM ShoppingList";

da.SelectCommand = cmd;
da.Fill(ds,"ShoppingList");

grdShoppingList.SetDataBinding(ds,"ShoppingList");

However, I have used the table styles so that I have a quantity and select columns. Qantity to be a comboBox and select to be check box.
This is so that the customer can select the quantity from the combox and check the select the checkbox when they have selected this product to buy.
The problem that is does the display the combo box and checkbox columns when loaded from the database, if I commet out the database code then it
will display them.

I need to display what in the database with the extra columns designed in code to display the quantity, and select columns.
My datagrid should have the following columns. Product, Price, Quantity (comboBox), Select (checkBox).

Product and price display if I load from the database.
Quantity and select, if I commet out the database code.

I need both.

Thank you very much in advance.

Happy New Year,

Steve
AnswerRe: datagrid problem Pin
Abdul Raheem Farooq1-Jan-06 23:03
Abdul Raheem Farooq1-Jan-06 23:03 
GeneralRe: datagrid problem Pin
steve_rm2-Jan-06 4:23
steve_rm2-Jan-06 4:23 
QuestionSaving an Excel Workbook in C# Pin
meeram3951-Jan-06 22:11
meeram3951-Jan-06 22:11 
AnswerRe: Saving an Excel Workbook in C# Pin
AB77711-Jan-06 22:22
AB77711-Jan-06 22:22 
GeneralRe: Saving an Excel Workbook in C# Pin
meeram3953-Jan-06 0:23
meeram3953-Jan-06 0:23 
GeneralRe: Saving an Excel Workbook in C# Pin
AB77713-Jan-06 18:03
AB77713-Jan-06 18:03 
GeneralRe: Saving an Excel Workbook in C# Pin
meeram3955-Jan-06 2:04
meeram3955-Jan-06 2:04 
GeneralRe: Saving an Excel Workbook in C# Pin
AB77715-Jan-06 2:46
AB77715-Jan-06 2:46 
QuestionCrystal Report For VS 2005 Setup File Pin
ayuba asia1-Jan-06 21:30
ayuba asia1-Jan-06 21:30 
AnswerRe: Crystal Report For VS 2005 Setup File Pin
S. Akif Kamal2-Jan-06 19:57
S. Akif Kamal2-Jan-06 19:57 
GeneralRe: Crystal Report For VS 2005 Setup File Pin
ayuba asia4-Jan-06 2:11
ayuba asia4-Jan-06 2:11 
Questionhow can i load data to listview from MySql database Pin
azmafaridah1-Jan-06 21:10
azmafaridah1-Jan-06 21:10 
AnswerRe: how can i load data to listview from MySql database Pin
OneSoftware1-Jan-06 23:53
OneSoftware1-Jan-06 23:53 
Questioncreating directory Pin
pankaj b1-Jan-06 21:04
pankaj b1-Jan-06 21:04 
AnswerRe: creating directory Pin
Abdul Raheem Farooq1-Jan-06 21:38
Abdul Raheem Farooq1-Jan-06 21:38 
Questiongetting hole when updating dataadapter Pin
nitinbourai1-Jan-06 20:50
nitinbourai1-Jan-06 20:50 
QuestionRappi.dll Pin
jayshml1-Jan-06 20:28
jayshml1-Jan-06 20:28 

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.