Hello,
I have been struggling for a few days on this and have met with no success. I'm hoping someone can send me in the right direction. I have a grid that represents product prices by user type. User Type across the top, SKU down the left side. I need to show the price for each intersection, and as well, indicate whether that user type has access to the item. In addition, I need to be able to edit both values.
So in a single cell, I need a way to represent a decimal and a boolean. At first I tried the examples for loading multiple controls into a cell, but that didn't work for a number of reasons, most importantly, it would have been cumbersome to navigate and interact. So my next attempt was to have the cell display the price in two colors: Gray implies that the user has no access, blue implies that the user has access. I could then allow the operator to tab through the cells, type in prices and hit Ctrl + A to toggle the active flag.
I started with an override of GridDataCellElement that takes a string, with the pipe character separating the two values: "true|150.00", and stores the result internally in a string and a bool. This is being done in the SetContentCore override. Display works great, but when you edit a cell, you are presented with the composite field - true|150.00 - rather than just the price field.
I can supply code if necessary, but if someone can recommend the best way to do something like this, or better yet post an example, that would be great.
Thanks, Steve
I have been struggling for a few days on this and have met with no success. I'm hoping someone can send me in the right direction. I have a grid that represents product prices by user type. User Type across the top, SKU down the left side. I need to show the price for each intersection, and as well, indicate whether that user type has access to the item. In addition, I need to be able to edit both values.
So in a single cell, I need a way to represent a decimal and a boolean. At first I tried the examples for loading multiple controls into a cell, but that didn't work for a number of reasons, most importantly, it would have been cumbersome to navigate and interact. So my next attempt was to have the cell display the price in two colors: Gray implies that the user has no access, blue implies that the user has access. I could then allow the operator to tab through the cells, type in prices and hit Ctrl + A to toggle the active flag.
I started with an override of GridDataCellElement that takes a string, with the pipe character separating the two values: "true|150.00", and stores the result internally in a string and a bool. This is being done in the SetContentCore override. Display works great, but when you edit a cell, you are presented with the composite field - true|150.00 - rather than just the price field.
I can supply code if necessary, but if someone can recommend the best way to do something like this, or better yet post an example, that would be great.
Thanks, Steve