Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I detect silence Pin
Heath Stewart5-Jun-04 18:14
protectorHeath Stewart5-Jun-04 18:14 
GeneralRe: How can I detect silence Pin
leppie6-Jun-04 0:00
leppie6-Jun-04 0:00 
AnswerRe: How can I detect silence Pin
Roman Rodov6-Jun-04 21:14
Roman Rodov6-Jun-04 21:14 
QuestionHow to add a background image for ListviewItem? Pin
cmxcmz20025-Jun-04 2:27
cmxcmz20025-Jun-04 2:27 
AnswerRe: How to add a background image for ListviewItem? Pin
Heath Stewart5-Jun-04 8:21
protectorHeath Stewart5-Jun-04 8:21 
QuestionHow can I Edit a Readonly DataGrid? Pin
mkomasi5-Jun-04 2:16
mkomasi5-Jun-04 2:16 
AnswerRe: How can I Edit a Readonly DataGrid? Pin
Heath Stewart5-Jun-04 8:17
protectorHeath Stewart5-Jun-04 8:17 
GeneralDatagrid and a checkbox Pin
MeterMan4-Jun-04 20:46
MeterMan4-Jun-04 20:46 
I have seen this done before but am still not clear on exactly how it is done cause for some reason its not working for me. Here are the steps I have taken.

1) Make a DataGrid 2) Make the DataAdapter 3)Make the Dataset 4) set the properties of the datagrid Source=dataSet11 Member=Movie 5) then the code

I have 2 columns in my dataset one title the other information. I want to add a checkbox so I try to do something like the following.

oleDbDataAdapter1.fill(dataSet11);

/**********************************************
 * want to make a check box so i try this
 **********************************************/

DataGridTableStyle tablestyle = new DataGridTableStyle();
tablestyle.MappingName = "Movie"; // map it to my table name
DataGridColumnStyle boolCol = new DataGridBoolColumn(); // make the bool box
boolCol.MappingName = "Current"; // name it 
boolCol.HeaderText = "Info Current"; // its header
boolCol.Width = 70; // its width
tablestyle.GridColumnStyles.Add(boolCol); // add the bool style 
dataGrid1.TableStyles.Add(tablestyle);// add the style to my datagrid

All i get is a datagrid with no fields, or rows. It should be simple to fix but I'm drawing a blank.
Thanks for the help in advance.


Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
GeneralRe: Datagrid and a checkbox Pin
Heath Stewart5-Jun-04 7:49
protectorHeath Stewart5-Jun-04 7:49 
GeneralHandle Click on MenuItems with sub menu Pin
jeegar4-Jun-04 14:47
jeegar4-Jun-04 14:47 
GeneralRe: Handle Click on MenuItems with sub menu Pin
leppie4-Jun-04 19:47
leppie4-Jun-04 19:47 
GeneralRe: Handle Click on MenuItems with sub menu Pin
Heath Stewart5-Jun-04 7:46
protectorHeath Stewart5-Jun-04 7:46 
Generalc#-configuration file Pin
Member 11509014-Jun-04 11:20
Member 11509014-Jun-04 11:20 
GeneralRe: c#-configuration file Pin
Heath Stewart5-Jun-04 7:44
protectorHeath Stewart5-Jun-04 7:44 
GeneralC# Transparency issues Pin
Adam Durity4-Jun-04 10:24
Adam Durity4-Jun-04 10:24 
GeneralRe: C# Transparency issues Pin
Heath Stewart4-Jun-04 10:43
protectorHeath Stewart4-Jun-04 10:43 
GeneralRe: C# Transparency issues Pin
Adam Durity4-Jun-04 10:44
Adam Durity4-Jun-04 10:44 
GeneralRe: C# Transparency issues Pin
Heath Stewart4-Jun-04 10:48
protectorHeath Stewart4-Jun-04 10:48 
GeneralRe: C# Transparency issues Pin
leppie4-Jun-04 10:53
leppie4-Jun-04 10:53 
GeneralRe: C# Transparency issues Pin
Heath Stewart4-Jun-04 11:01
protectorHeath Stewart4-Jun-04 11:01 
GeneralRe: C# Transparency issues Pin
leppie4-Jun-04 11:06
leppie4-Jun-04 11:06 
GeneralRe: C# Transparency issues Pin
leppie4-Jun-04 10:49
leppie4-Jun-04 10:49 
GeneralRe: C# Transparency issues Pin
bneacetp4-Jun-04 17:11
bneacetp4-Jun-04 17:11 
GeneralSide TabControl Pin
kaleid4-Jun-04 9:38
kaleid4-Jun-04 9:38 
GeneralRe: Side TabControl Pin
Carlos H. Perez4-Jun-04 10:37
Carlos H. Perez4-Jun-04 10:37 

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.