This is a migrated thread and some comments may be shown as answers.

Show (focus)cell data as selected

1 Answer 74 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 17 Oct 2013, 01:23 AM
Hi,
iam working with pivot grid.
In my pivot grid iam displaying the result as Gantt view now everything is fine.
in my grid cell bound i check the result date with today if its today i sed the cell back color as red.
till this it works fine .
now my need is after binding i want to focus the cell which is equal to today.
check the image attached
In this Img1 i have loaded the data .
But i need the selected column or cell to be focused for todays data as in Img2 .

1 Answer, 1 is accepted

Sort by
0
Syed
Top achievements
Rank 1
answered on 17 Oct 2013, 04:03 AM

Hi,
I have done this in Celldatabound

 int cellwidth=Convert.ToInt32(cell.Field.CellStyle.Width.Value);
                if (todayes == DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd"))
                {
                    cell.BackColor = Color.Red;
                    //cell.Focus();

                    //cell.Field.Show();

                    RadPivotGrid1.ClientSettings.Scrolling.ScrollLeft = Convert.ToString(cell.ColumnIndex * cellwidth+60);
                }

Tags
PivotGrid
Asked by
Syed
Top achievements
Rank 1
Answers by
Syed
Top achievements
Rank 1
Share this question
or