/// <summary> /// Draws the header row. /// </summary> private void DrawHeaderRow() { if (this.Theme.HeaderStyle == GridHeaderStyle.Fixed) { if (mHeaderView == null) { mHeaderView = new DSGridRowView(this); mHeaderView.Processor.RowIndex = 0; mHeaderView.Processor.Style = CellStyle.Header; //var hWidth = Processor.CalculateSize().Width; //mHeaderView.LayoutParameters = new DSAbsoluteLayout.DSAbsoluteLayoutParams (hWidth, Context.ToDevicePixels ((int)this.Theme.HeaderHeight), 0, 0); } var hWidth = Processor.CalculateSize().Width; mHeaderView.LayoutParameters = new DSAbsoluteLayout.DSAbsoluteLayoutParams(Context.ToDevicePixels((int)hWidth), Context.ToDevicePixels((int)this.Theme.HeaderHeight), 0, 0); mHeaderView.Initialize(); if (mHeaderView.Parent == null) { this.AddView(mHeaderView); } } }