Click here to Skip to main content
15,888,190 members
Home / Discussions / C#
   

C#

 
AnswerRe: Question about constructors of a class Pin
PIEBALDconsult21-May-13 18:50
mvePIEBALDconsult21-May-13 18:50 
GeneralRe: Question about constructors of a class Pin
Arun kumar Gautam21-May-13 19:06
Arun kumar Gautam21-May-13 19:06 
AnswerRe: Question about constructors of a class PinPopular
Pete O'Hanlon21-May-13 20:21
mvePete O'Hanlon21-May-13 20:21 
GeneralRe: Question about constructors of a class Pin
Arun kumar Gautam21-May-13 20:43
Arun kumar Gautam21-May-13 20:43 
AnswerRe: Question about constructors of a class Pin
DaveyM6921-May-13 22:12
professionalDaveyM6921-May-13 22:12 
AnswerRe: Question about constructors of a class Pin
harold aptroot22-May-13 3:49
harold aptroot22-May-13 3:49 
QuestionSome Columns of DataGridView Wont Accept Values Pin
matt_1ca21-May-13 17:51
matt_1ca21-May-13 17:51 
AnswerRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca21-May-13 18:30
matt_1ca21-May-13 18:30 
CSS
While banging my head trying to find an answer  :^)  ... below is what I did to test it further and gain more insight .. I changed the values as described below with result also indicated:

Change 1: I changed all the values pushed to the 48 columns to be the string  "Writing here"
Result  : About six columns responded and reflected the change

Change 2: I then proceeded to change the value from "Writing here" to the number 68
Result  : 30+ columns have responded and reflected the new value 68

This is good and indicates that the type of data pushed have an influence on whether the value actually gets to land in the grid or not.

Unfortunately, the particular column whose cells I am interested in altering remains unaffected so there seems something odd about it ...

All the columns get populated on the fly via a stored procedure that is mapped to a dataadapter that is created inside a .xsd file.

The one odd thing about the particular column I want to affect via code is that it is not actually a column existing in a table instead it is created via with a little t-sql
manipulation in the select statement of the stored procedure alongside the other normal columns similar to the one shown

Select NormalColumnActuallyExisting1,
       NormalColumnActuallyExisting2,
       NormalColumnActuallyExisting3,
       ColumnCreatedOnFly = Case When NormalColumnActuallyExisting1 = 1 then ...
                                 When NormalColumnActuallyExisting2 = 1 then ...
                                 When NormalColumnActuallyExisting3 = 1 then ...
                                 Else  ...
                            End
       NormalColumnActuallyExisting3,
...

The odd (ColumnCreatedOnFly) gets populated with a hardcoded string based on the bit values of NormalColumnActuallyExisting1, NormalColumnActuallyExisting2 and        NormalColumnActuallyExisting3 columns so it really puzzles me why it wont accept the string in the Change 1 I have described above...

So I did the changes below:


Change 3: I then proceeded to change the value from 68 to the boolean true
Result  : The odd column whose value I want to change still remains unaffected

Change 4: I then proceeded to change the value from true to the integer 0 (for bit)
Result  : The odd column whose value I want to change still remains unaffected

All I want is to be able to push a string in that said odd column but finding the grid not cooperating with me right now ... so is there a way for me to make it happen ... thanks again for all the help I really appreciate it.

GeneralRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca22-May-13 14:57
matt_1ca22-May-13 14:57 
GeneralRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca22-May-13 15:11
matt_1ca22-May-13 15:11 
QuestionTo Throw or Not To Throw Pin
Kevin Marois21-May-13 12:39
professionalKevin Marois21-May-13 12:39 
AnswerRe: To Throw or Not To Throw Pin
Garth J Lancaster21-May-13 13:19
professionalGarth J Lancaster21-May-13 13:19 
AnswerRe: To Throw or Not To Throw Pin
SledgeHammer0121-May-13 13:37
SledgeHammer0121-May-13 13:37 
GeneralRe: To Throw or Not To Throw Pin
Kevin Marois21-May-13 13:40
professionalKevin Marois21-May-13 13:40 
GeneralRe: To Throw or Not To Throw Pin
SledgeHammer0121-May-13 14:31
SledgeHammer0121-May-13 14:31 
AnswerRe: To Throw or Not To Throw Pin
SoMad21-May-13 13:55
professionalSoMad21-May-13 13:55 
AnswerRe: To Throw or Not To Throw Pin
PIEBALDconsult21-May-13 14:13
mvePIEBALDconsult21-May-13 14:13 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen21-May-13 22:29
professionalEddy Vluggen21-May-13 22:29 
AnswerRe: To Throw or Not To Throw Pin
Dave Kreskowiak21-May-13 14:29
mveDave Kreskowiak21-May-13 14:29 
GeneralRe: To Throw or Not To Throw Pin
PIEBALDconsult21-May-13 14:52
mvePIEBALDconsult21-May-13 14:52 
GeneralRe: To Throw or Not To Throw Pin
Keith Barrow22-May-13 2:20
professionalKeith Barrow22-May-13 2:20 
GeneralRe: To Throw or Not To Throw Pin
Dave Kreskowiak22-May-13 2:25
mveDave Kreskowiak22-May-13 2:25 
AnswerRe: To Throw or Not To Throw Pin
V.21-May-13 23:38
professionalV.21-May-13 23:38 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 0:30
professionalEddy Vluggen22-May-13 0:30 
GeneralRe: To Throw or Not To Throw Pin
V.22-May-13 0:38
professionalV.22-May-13 0:38 

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.