Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I avoid the fliker of a form? Pin
anuo0627-Oct-06 18:03
anuo0627-Oct-06 18:03 
AnswerRe: How can I avoid the fliker of a form? Pin
DiegoValdevino28-Oct-06 2:40
DiegoValdevino28-Oct-06 2:40 
GeneralRe: How can I avoid the fliker of a form? Pin
Luc Pattyn28-Oct-06 7:01
sitebuilderLuc Pattyn28-Oct-06 7:01 
Questionseeting the background color of a Windows Form Pin
Rocky#27-Oct-06 8:49
Rocky#27-Oct-06 8:49 
AnswerRe: seeting the background color of a Windows Form Pin
Larantz27-Oct-06 9:01
Larantz27-Oct-06 9:01 
GeneralRe: seeting the background color of a Windows Form Pin
Rocky#27-Oct-06 9:11
Rocky#27-Oct-06 9:11 
AnswerRe: seeting the background color of a Windows Form Pin
BoneSoft27-Oct-06 10:19
BoneSoft27-Oct-06 10:19 
QuestionC# 2.0 DataBinding using the BindingSource in user controls Pin
rajat_tandon200027-Oct-06 8:46
rajat_tandon200027-Oct-06 8:46 
Hi,

I have a user control B put inside the parent user control A.

On the child control B, I have put a combo box and a BindingSource BS1. In
the load event of child control B, I fetch the
values from the database and put in a generic BindingList of NameValueClass.
(given below)


class NameValueClass
{

private int _id;
public int Id
{
get{return _id;}
set{_id = value;}
}


private string _name;
public int Id
{
get{return _name;}
set{_name = value;}
}

}

BindingList<namevalueclass> list = RetrieveComboValuesFromDataBase();

Next I assign the list to datasource of BindingSource BS1 (given below)


BS1.DataSource = list;

combo.DataSource = BS1;
combo.DataMember = "Name";
combo.ValueMember = "Id" ;

I have put a Grid on Parent control A. Now I want to show some detail data
on grid, On changing the combo box value i.e. As soon as the
value in the combo box is changed, I need to fetch corresponding details
from database and display on grid. What is the best
way to achieve the same using the BindingSource.

Regards,
Rajat.
QuestionSql Server connection [modified] Pin
Chris Morgan27-Oct-06 7:08
Chris Morgan27-Oct-06 7:08 
AnswerRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 8:33
Dustin Metzgar27-Oct-06 8:33 
GeneralRe: Sql Server connection Pin
Chris Morgan27-Oct-06 8:51
Chris Morgan27-Oct-06 8:51 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 9:05
Dustin Metzgar27-Oct-06 9:05 
GeneralRe: Sql Server connection Pin
Chris Morgan27-Oct-06 9:32
Chris Morgan27-Oct-06 9:32 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 9:51
Dustin Metzgar27-Oct-06 9:51 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 10:06
Dustin Metzgar27-Oct-06 10:06 
GeneralRe: Sql Server connection Pin
Chris Morgan27-Oct-06 13:20
Chris Morgan27-Oct-06 13:20 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 13:43
Dustin Metzgar27-Oct-06 13:43 
AnswerRe: Sql Server connection Pin
Rob Graham27-Oct-06 10:28
Rob Graham27-Oct-06 10:28 
QuestionObject to IntPtr... Pin
Shy Agam27-Oct-06 6:31
Shy Agam27-Oct-06 6:31 
AnswerRe: Object to IntPtr... Pin
Guffa27-Oct-06 7:07
Guffa27-Oct-06 7:07 
GeneralRe: Object to IntPtr... Pin
Shy Agam27-Oct-06 7:17
Shy Agam27-Oct-06 7:17 
GeneralRe: Object to IntPtr... Pin
led mike27-Oct-06 7:31
led mike27-Oct-06 7:31 
GeneralRe: Object to IntPtr... Pin
Shy Agam27-Oct-06 7:41
Shy Agam27-Oct-06 7:41 
GeneralRe: Object to IntPtr... Pin
led mike27-Oct-06 7:46
led mike27-Oct-06 7:46 
GeneralRe: Object to IntPtr... Pin
Eric Dahlvang27-Oct-06 8:12
Eric Dahlvang27-Oct-06 8:12 

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.