You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make one particular KryptonDataGridViewTextBoxColumn's cells to appear identical (or as close as possible) in normal and selected state (including edit mode) as as they are in disabled state, including border style/color, back color, front color, etc. For that I assumed I needed to do something like this:
But for the life of me I can't find anything remotely similar. Column has a DefaultCellStyle property that does not appear to have anything regarding states. It also has CellTemplate property, again I am not sure how to use it with regard to a particular state if that's possible at all. Meanwhile KryptonDataGridView has StateDisabled.DataCell property of type PalleteDataGridViewTrippleStates, this seems a bit like the value I need, but what property of a column I'm supposed to assign it to? I also tried to loop through individual cells but similar problems, can't find a property I can assign this to. Is what I want even possible without some custom draw events handlers? Can someone help me with this please? :)
Oh and all the columns are generated programmatically so I cannot do anything in VS designer
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to make one particular KryptonDataGridViewTextBoxColumn's cells to appear identical (or as close as possible) in normal and selected state (including edit mode) as as they are in disabled state, including border style/color, back color, front color, etc. For that I assumed I needed to do something like this:
or at least
But for the life of me I can't find anything remotely similar. Column has a DefaultCellStyle property that does not appear to have anything regarding states. It also has CellTemplate property, again I am not sure how to use it with regard to a particular state if that's possible at all. Meanwhile KryptonDataGridView has StateDisabled.DataCell property of type PalleteDataGridViewTrippleStates, this seems a bit like the value I need, but what property of a column I'm supposed to assign it to? I also tried to loop through individual cells but similar problems, can't find a property I can assign this to. Is what I want even possible without some custom draw events handlers? Can someone help me with this please? :)
Oh and all the columns are generated programmatically so I cannot do anything in VS designer
Beta Was this translation helpful? Give feedback.
All reactions