C# 3.0 ("C# Orcas") introduces several language extensions that build on C# 2.0 to support the creation and use of higher order, functional style class libraries. The extensions enable construction of compositional APIs that have equal expressive power of query languages in domains such as ...

learn more… | top users | synonyms

0
votes
0answers
6 views

Is it possible to put data in particular column of datagridview

Is there any way to show data from access table to some particular columns. For eg. Table have following data BCode TCode1 Slot1 TCode2 Slot2 TCode3 Slot Batch1 T1 10:00 T2 12:00 ...
0
votes
3answers
42 views

Sort DataRow[] using linq

DataRow[] drTest Contains System.Data.DataRow say contains 10 DataRow Insideof each DataRow i have an ItemArray contains Name and Count. Now i want to sort the DataRow[] drTest in Descending order ...
-5
votes
0answers
25 views

windows form application using c# [closed]

I designed a form with label,button,textbox controls: firstname lastname emailaddress username password and a button when i run this program i want all the details which i enter into the textboxes to ...
0
votes
0answers
34 views

I have added dropdownlist at first row of gridview.Now i want to bind this dropdownlist with some static column

Dropdownlist at first row is empty.i need to add column inside dropdown.here is my code: private void grdbind() { DataTable db = new DataTable(); db = (DataTable)Session["csvdata"]; ...
0
votes
0answers
47 views

String Connection SQL Server Express

I am using string connection for SQL Server Professional. It is ok... <add name="bd1" connectionString="Provider=SQLOLEDB.1; Data Source=10.180.0.2; User ID=sa; Password=1234; Initial ...
1
vote
5answers
77 views

C# Dictionary - Get key from value - Dictionary<string, List<string>>

I am having trouble getting the key by specifying a value. What is the best way I can achieve this? var st1= new List<string> { "NY", "CT", "ME" }; var st2= new List<string> { "KY", "TN", ...
0
votes
2answers
35 views

C# thread does not set varable value of another class?

here is my testing code: class Program { static void Main(string[] args) { new Thread(delegate() { runThread(); }).Start(); Console.WriteLine(Global.test); ...
0
votes
0answers
14 views

How to show yes/no value in DataGridViewCheckBoxColumn

I have 7 columns of yes/no data type I want to show them in datagridview in checkbox form. I have written this code where I am showing some values from database to datagridview with a column having ...
0
votes
0answers
42 views

How to open a Existing xlsx file as a Pop up for SAVE/OPEN in C#

I have a ASP.net application in which we are creating xlsx files using OPENXML, we are able to create xlsx file & save it into one of the folder in application. But Now we want to show that file ...
0
votes
1answer
36 views

String was not recognized as a valid DateTime

I am getting this error: String was not recognized as a valid DateTime. DateTime date = DateTime.ParseExact("4/29/2013", "MM/dd/yyyy", null);
1
vote
1answer
26 views

Cannot convert type 'string' to 'System.Collections.ArrayList

Here is my code private static ArrayList GetFirstObjectFromDictionary(Dictionary<string, string> dictionary) { foreach (ArrayList arr in dictionary.Values) //error { ...
0
votes
0answers
3 views

How to know on which combo box event fired

I have 84 combo box inside 12 group box, in a group of 12. Combo Box are named as cb1,cb2,cb3,cb4,cb5,cb6,...... Group Box are named as gBox1,gBox2,gBox3,gBox4,gBox5,.... Now I want to save the item ...
0
votes
0answers
15 views

Is it possible to iterate on GroupBox

Is it possible to iterate using foreach loop on multiple geoupBox. I have 6 GroupBox named as gBox1,gBox2,gBox3,gBox4,gBox5,gBox6 AND each gBox contain 21 ComboBox out of which I want to select only ...
0
votes
3answers
50 views

Assigning values to array of 'Combo Boxes' in a 'Group Box' using for each loop in c#

I have 10 comboBox in a groupBox for I just want to display a calculated value in respective comboBox like this say if I set a varible double i=08.00; then on button click cmboBox should display ...
0
votes
1answer
13 views

How to read text file and save it in excel sheet using asp.net c#

I have one text file with the below structure 10180,65,395, 10182,65,395, 10183,65,395, 10185,65,395, I need that after read the text file, the cell in the excel sheet contains the value as below ...

1 2 3 4 5 182
15 30 50 per page