Since upgrading to Q2 two importnat functions of the grid no longer work:
1. I used to Auto select the first row of the grid as follows:
if (myGrid.Records.Count > 0)
{
DataRecord dataRecord = new DataRecord();
dataRecord = (DataRecord)myGrid.Records[0];
myGrid.SelectedItem = dataRecord.Data;
}
2. I used to expand the child grid of the first record:
myGrid.DataLoaded -= new EventHandler<EventArgs>(myGrid_DataLoaded);
if (myGrid.Records.Count > 0)
{
if (myGrid.Records[0] is ExpandableDataRecord)
{
((ExpandableDataRecord)myGrid.Records[0]).IsExpanded = true;
}
}
these no longer work - despite Records being deprecated they should still function shouldn't they??
1. I used to Auto select the first row of the grid as follows:
if (myGrid.Records.Count > 0)
{
DataRecord dataRecord = new DataRecord();
dataRecord = (DataRecord)myGrid.Records[0];
myGrid.SelectedItem = dataRecord.Data;
}
2. I used to expand the child grid of the first record:
myGrid.DataLoaded -= new EventHandler<EventArgs>(myGrid_DataLoaded);
if (myGrid.Records.Count > 0)
{
if (myGrid.Records[0] is ExpandableDataRecord)
{
((ExpandableDataRecord)myGrid.Records[0]).IsExpanded = true;
}
}
these no longer work - despite Records being deprecated they should still function shouldn't they??