Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Get Value in GridCtrl when there are coloured cells
Get Value in GridCtrl when there are coloured cells [message #37969] |
Mon, 26 November 2012 10:14 |
|
koldo
Messages: 3394 Registered: August 2008
|
Senior Veteran |
|
|
Hello Daniel
If GridCtrl has colored cells there is no function to get the data directly.
I propose you to add a function like this:
Value GridCtrl::GetValue(int row, int col)
{
const Value &val = items[row + fixed_rows][col + fixed_cols].val;
if(IsType<AttrText>(val)) {
const AttrText& t = ValueTo<AttrText>(val);
return t.text;
} else
return val;
}
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Fri Sep 20 12:41:37 CEST 2024
Total time taken to generate the page: 0.03835 seconds
|