Click here to Skip to main content
15,922,007 members
Home / Discussions / C#
   

C#

 
AnswerRe: How To Install .net Framework Without Wizard Pin
N a v a n e e t h2-Jan-09 17:35
N a v a n e e t h2-Jan-09 17:35 
AnswerRe: How To Install .net Framework Without Wizard Pin
Dave Kreskowiak2-Jan-09 19:54
mveDave Kreskowiak2-Jan-09 19:54 
GeneralRe: How To Install .net Framework Without Wizard Pin
N a v a n e e t h3-Jan-09 1:05
N a v a n e e t h3-Jan-09 1:05 
AnswerRe: How To Install .net Framework Without Wizard Pin
#realJSOP2-Jan-09 23:56
professional#realJSOP2-Jan-09 23:56 
QuestionGetting ToolStrip button's CheckState to reflect text formatting Pin
Member 26305032-Jan-09 13:54
Member 26305032-Jan-09 13:54 
AnswerRe: Getting ToolStrip button's CheckState to reflect text formatting Pin
Eddy Vluggen2-Jan-09 23:03
professionalEddy Vluggen2-Jan-09 23:03 
AnswerRe: Getting ToolStrip button's CheckState to reflect text formatting Pin
Member 26305035-Jan-09 7:36
Member 26305035-Jan-09 7:36 
QuestionDatagrid Checkbox is not getting binded to dataset/ access database Pin
jeweladdict2-Jan-09 12:28
jeweladdict2-Jan-09 12:28 
I have followed another tutorial on adding checkboxes to datagrids and have gotten it to show up. The problem is that I cannot get the checkbox column to bind to my dataset column. I alway see gray checkboxes when I run. All of the other columns are binding correctly. Anyone know what I am doing wrong?

Here is the code
            DataGridTableStyle tableStyle = new DataGridTableStyle();

//specify the table from dataset (required step)
tableStyle.MappingName = "Invoice";

//STEP 2: Create a string column and add it to the tablestyle
DataGridColumnStyle DateColumn = new DataGridTextBoxColumn();
DateColumn.MappingName = "Date"; //from dataset table
DateColumn.HeaderText = "Date";
DateColumn.Width = 200;
tableStyle.GridColumnStyles.Add(DateColumn);

DataGridColumnStyle InvoiceNumberColumn = new DataGridTextBoxColumn();
InvoiceNumberColumn.MappingName = "InvoiceNumber"; //from dataset table
InvoiceNumberColumn.HeaderText = "Invoice Number";
InvoiceNumberColumn.Width = 200;
tableStyle.GridColumnStyles.Add(InvoiceNumberColumn);

DataGridColumnStyle RackNumberColumn = new DataGridTextBoxColumn();
RackNumberColumn.MappingName = "RackNumber"; //from dataset table
RackNumberColumn.HeaderText = "Rack Number";
RackNumberColumn.Width = 100;
tableStyle.GridColumnStyles.Add(RackNumberColumn);

/*
DataGridColumnStyle PhoneNumberColumn = new DataGridTextBoxColumn();
PhoneNumberColumn.MappingName = "PhoneNumber"; //from dataset table
PhoneNumberColumn.HeaderText = "Phone Number";
PhoneNumberColumn.Width = 200;
tableStyle.GridColumnStyles.Add(PhoneNumberColumn);
*/

//STEP 4: Add the checkbox
DataGridColumnStyle PaidColumn = new DataGridBoolColumn();
PaidColumn.MappingName = "Paid";
PaidColumn.HeaderText = "Paid";
((DataGridBoolColumn)PaidColumn).AllowNull = false;
//PaidColumn.TrueValue=true;
//PaidColumn.FalseValue=false;
PaidColumn.Width = 100;
tableStyle.GridColumnStyles.Add(PaidColumn);

DataGridColumnStyle PickedUpColumn = new DataGridBoolColumn();
PickedUpColumn.MappingName = "PickedUp";
PickedUpColumn.HeaderText = "Picked Up";
((DataGridBoolColumn)PickedUpColumn).AllowNull = false;
PickedUpColumn.Width = 100;
tableStyle.GridColumnStyles.Add(PickedUpColumn);

//STEP 5: Add the tablestyle to your datagrid's tablestlye collection
myDataGrid.TableStyles.Add(tableStyle);



[IMG]http://i40.tinypic.com/34fo65j.jpg[/IMG]
Here is a snapshot of my APP. The datagrid on the lower portion shows the unaltered dataset, whereas the top datagrid is the one I am using the datagridstyle for
AnswerRe: Datagrid Checkbox is not getting binded to dataset/ access database Pin
jeweladdict2-Jan-09 12:40
jeweladdict2-Jan-09 12:40 
GeneralRe: Datagrid Checkbox is not getting binded to dataset/ access database Pin
jeweladdict2-Jan-09 12:53
jeweladdict2-Jan-09 12:53 
Questionclose the runing process Pin
abu rakan2-Jan-09 11:44
abu rakan2-Jan-09 11:44 
QuestionRe: close the runing process Pin
Mark Salsbery2-Jan-09 11:55
Mark Salsbery2-Jan-09 11:55 
AnswerRe: close the runing process Pin
User 66582-Jan-09 11:57
User 66582-Jan-09 11:57 
AnswerRe: close the runing process Pin
Dave Kreskowiak2-Jan-09 19:52
mveDave Kreskowiak2-Jan-09 19:52 
Questionhelp...................... Pin
abu rakan2-Jan-09 11:39
abu rakan2-Jan-09 11:39 
AnswerRe: help...................... Pin
Mark Salsbery2-Jan-09 11:58
Mark Salsbery2-Jan-09 11:58 
GeneralRe: help...................... Pin
CPallini3-Jan-09 2:54
mveCPallini3-Jan-09 2:54 
GeneralRe: help...................... Pin
Eddy Vluggen3-Jan-09 23:19
professionalEddy Vluggen3-Jan-09 23:19 
AnswerRe: help...................... Pin
Dave Kreskowiak2-Jan-09 19:51
mveDave Kreskowiak2-Jan-09 19:51 
AnswerRe: help...................... Pin
#realJSOP2-Jan-09 23:58
professional#realJSOP2-Jan-09 23:58 
Questionsound in c# Pin
BESHOY MARKO2-Jan-09 10:50
BESHOY MARKO2-Jan-09 10:50 
AnswerRe: sound in c# Pin
Kristian Sixhøj2-Jan-09 10:53
Kristian Sixhøj2-Jan-09 10:53 
GeneralRe: sound in c# Pin
BESHOY MARKO2-Jan-09 11:06
BESHOY MARKO2-Jan-09 11:06 
GeneralRe: sound in c# Pin
Kristian Sixhøj2-Jan-09 23:58
Kristian Sixhøj2-Jan-09 23:58 
GeneralRe: sound in c# Pin
CPallini3-Jan-09 2:58
mveCPallini3-Jan-09 2:58 

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.