Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
QuestionHow to get another DataTable from original DataTable? Pin
nhatvhm4-Sep-08 18:20
nhatvhm4-Sep-08 18:20 
AnswerRe: How to get another DataTable from original DataTable? Pin
AB77714-Sep-08 21:19
AB77714-Sep-08 21:19 
GeneralRe: How to get another DataTable from original DataTable? Pin
nhatvhm5-Sep-08 21:28
nhatvhm5-Sep-08 21:28 
AnswerRe: How to get another DataTable from original DataTable? Pin
Morven Huang4-Sep-08 21:30
Morven Huang4-Sep-08 21:30 
GeneralRe: How to get another DataTable from original DataTable? Pin
nhatvhm5-Sep-08 21:14
nhatvhm5-Sep-08 21:14 
AnswerRe: How to get another DataTable from original DataTable? Pin
nhatvhm5-Sep-08 21:47
nhatvhm5-Sep-08 21:47 
QuestionSystem.io.ports problem, how check inputs Pin
desperate_C4-Sep-08 13:52
desperate_C4-Sep-08 13:52 
Questionsearchable combobox? Pin
Jassim Rahma4-Sep-08 12:19
Jassim Rahma4-Sep-08 12:19 
how can i integrate the following code into searchable combobox using the AutoComplete, i mean just like a textbox which will pick from the combo list? but must only select so it should not allow to type new values and it should also have ValueMember as well as Displaymember?

http://www.codeproject.com/KB/winsdk/Win32AutoCompleteComboBox/Win32_SDK_C_AutoCompleteComboBox1.gif[^]


here is the code I am currentlly usinga and want to integrate into AutoComplete:

private void get_vehicle_branches()

{

try

{

sql_connection = new SqlConnection("Data Source=.\\SQLEXPRESS;initial catalog=rent_a_car_company;integrated security=true;");

sql_connection.Open();

sql_command = new SqlCommand("sp_get_vehicle_branches", sql_connection);

sql_command.CommandType = CommandType.StoredProcedure;

// Create data adapter object 

sql_adapter = new SqlDataAdapter();

sql_adapter.SelectCommand = sql_command;

// Create a dataset object and fill with data using data adapter's Fill method 

data_set = new DataSet();

sql_adapter.Fill(data_set, "vehicle_branches");


// Attach dataset's DefaultView to the combobox 

cboVehicleBranch.DisplayMember = "branch_name";

cboVehicleBranch.ValueMember = "branch_id";

cboVehicleBranch.DataSource = data_set.Tables["vehicle_branches"].DefaultView;

cboVehicleBranch.SelectedIndex = -1;

}

// catch (Exception oE)

// {

// MessageBox.Show("Problem Populating Reader Box: [" + oE.ToString() + "]");

// }

finally

{

if (sql_reader != null) sql_reader.Close();

// if (sql_connection != null)

// {

// if (sql_connection.State == ConnectionState.Open)

// sql_connection.Close();

// }

}

}

AnswerRe: searchable combobox? Pin
Paul Conrad4-Sep-08 16:36
professionalPaul Conrad4-Sep-08 16:36 
GeneralRe: searchable combobox? Pin
Jassim Rahma5-Sep-08 2:28
Jassim Rahma5-Sep-08 2:28 
GeneralRe: searchable combobox? Pin
Paul Conrad5-Sep-08 4:53
professionalPaul Conrad5-Sep-08 4:53 
GeneralRe: searchable combobox? Pin
Jassim Rahma5-Sep-08 6:48
Jassim Rahma5-Sep-08 6:48 
QuestionrichTextBox and rtf problem Pin
panoskatws4-Sep-08 12:10
panoskatws4-Sep-08 12:10 
QuestionCan't remove the last row from datagridview Pin
NewToAspDotNet4-Sep-08 11:56
NewToAspDotNet4-Sep-08 11:56 
AnswerRe: Can't remove the last row from datagridview Pin
panoskatws4-Sep-08 12:16
panoskatws4-Sep-08 12:16 
GeneralRe: Can't remove the last row from datagridview Pin
NewToAspDotNet4-Sep-08 23:43
NewToAspDotNet4-Sep-08 23:43 
Questioni donot understand listview Pin
netJP12L4-Sep-08 11:17
netJP12L4-Sep-08 11:17 
AnswerRe: i donot understand listview Pin
Wendelius4-Sep-08 11:33
mentorWendelius4-Sep-08 11:33 
AnswerRe: i donot understand listview Pin
Daniel Grunwald4-Sep-08 12:42
Daniel Grunwald4-Sep-08 12:42 
QuestionVisual Studio 2008 Installation error Pin
arkiboys4-Sep-08 9:58
arkiboys4-Sep-08 9:58 
RantRe: Visual Studio 2008 Installation error Pin
Mbah Dhaim4-Sep-08 10:02
Mbah Dhaim4-Sep-08 10:02 
AnswerRe: Visual Studio 2008 Installation error Pin
#realJSOP4-Sep-08 10:31
professional#realJSOP4-Sep-08 10:31 
QuestionFormat of the initialization string does not conform to specification starting at index 0.???? Pin
Twyce4-Sep-08 8:08
Twyce4-Sep-08 8:08 
AnswerRe: Format of the initialization string does not conform to specification starting at index 0.???? Pin
leppie4-Sep-08 8:59
leppie4-Sep-08 8:59 
AnswerRe: Format of the initialization string does not conform to specification starting at index 0.???? Pin
Wendelius4-Sep-08 9:16
mentorWendelius4-Sep-08 9:16 

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.