Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: Horizontal scroll not working with OwnerDraw (List box) Pin
Aryadip19-May-04 2:18
Aryadip19-May-04 2:18 
QuestionHow to check Maximize button click event of a Form or how to check whether present size of form is maximum available size. Pin
sachinkalse18-May-04 23:13
sachinkalse18-May-04 23:13 
AnswerRe: How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size. Pin
Aryadip19-May-04 0:19
Aryadip19-May-04 0:19 
AnswerRe: How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size. Pin
Heath Stewart19-May-04 4:20
protectorHeath Stewart19-May-04 4:20 
Generalretrieving the value of XML parent problem Pin
dhananjayav18-May-04 23:09
dhananjayav18-May-04 23:09 
GeneralRe: retrieving the value of XML parent problem Pin
Heath Stewart19-May-04 4:18
protectorHeath Stewart19-May-04 4:18 
GeneralDisplaying data from database into a checkbox list Pin
M3L18-May-04 22:47
M3L18-May-04 22:47 
GeneralRe: Displaying data from database into a checkbox list Pin
Heath Stewart19-May-04 4:13
protectorHeath Stewart19-May-04 4:13 
You set the DataSource property to a valid data source, like a DataSet or DataTable. If your data source implements IListSource (like a DataSet), then you should set the DataMember to the name of the object (like the name of the DataTable you want to bind to).

Then, set the DataTextField and DataValueField to the names of the columns or properties (depending on whether you bind against a ADO.NET data source or a list of objects).

If you add a row to the CheckBoxList, make sure it gets added to the data source (like a DataSet). If you want to add this to the database as well, you should either use a DataAdapter derivative (like a SqlDataAdapter for SQL Server) with the command properties set accordingly and call Update, passing the DataSet. You could also just add it manually to the database and to the DataSet, but then you have a synchronization problem (they might get out of sync).

 

Microsoft MVP, Visual C#
My Articles
GeneralNetwork listener Pin
mhmoud rawas18-May-04 22:26
mhmoud rawas18-May-04 22:26 
QuestionDisposing Collection of IDisposable? Pin
Dr Herbie18-May-04 22:26
Dr Herbie18-May-04 22:26 
AnswerRe: Disposing Collection of IDisposable? Pin
Daniel Turini18-May-04 22:43
Daniel Turini18-May-04 22:43 
GeneralDesign Time Property Window Pin
acidcrush18-May-04 22:19
acidcrush18-May-04 22:19 
GeneralRe: Design Time Property Window Pin
Heath Stewart19-May-04 4:08
protectorHeath Stewart19-May-04 4:08 
Generalproblem with using VNC hooking Pin
fu018-May-04 22:03
fu018-May-04 22:03 
GeneralRe: problem with using VNC hooking Pin
Dave Kreskowiak19-May-04 3:24
mveDave Kreskowiak19-May-04 3:24 
GeneralSockets question Pin
Vladimir Georgiev18-May-04 20:47
Vladimir Georgiev18-May-04 20:47 
GeneralRe: Sockets question Pin
Roman Rodov18-May-04 21:07
Roman Rodov18-May-04 21:07 
GeneralRe: Sockets question Pin
Vladimir Georgiev19-May-04 2:44
Vladimir Georgiev19-May-04 2:44 
GeneralRe: Sockets question Pin
Heath Stewart19-May-04 4:02
protectorHeath Stewart19-May-04 4:02 
Generalconnecting user controls in c sharp Pin
samithas18-May-04 19:33
samithas18-May-04 19:33 
GeneralRe: connecting user controls in c sharp Pin
etfintnick19-May-04 2:03
etfintnick19-May-04 2:03 
GeneralRe: connecting user controls in c sharp Pin
Heath Stewart19-May-04 3:55
protectorHeath Stewart19-May-04 3:55 
Generalregd C# classes Pin
karteek18-May-04 19:21
karteek18-May-04 19:21 
GeneralRe: regd C# classes Pin
Charlie Williams18-May-04 19:52
Charlie Williams18-May-04 19:52 
GeneralRe: regd C# classes Pin
sreejith ss nair18-May-04 20:21
sreejith ss nair18-May-04 20:21 

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.