void SfGrid_QueryRowHeight (object sender, QueryRowHeightEventArgs e) { if (SfDataGridHelpers.IsCaptionSummaryRow (SfGrid, e.RowIndex)) { e.Height = 30; e.Handled = true; } }
private void statusHistoryGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (statusHistoryGrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out Height)) { e.Height = Height; e.Handled = true; } }
void HandleQueryRowHeightEventHandler (object sender, QueryRowHeightEventArgs e) { double height = SfDataGridHelpers.GetRowHeight (sfGrid, e.RowIndex); if (height > 35) { e.Height = height; e.Handled = true; } }
private void SfGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { e.Height = 60 * Resources.System.DisplayMetrics.Density; if (this.sfGrid.IsUnboundRow(e.RowIndex)) { e.Height = 70 * Resources.System.DisplayMetrics.Density; } e.Handled = true; }
void GridQueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (e.RowIndex > 0) { double height = SfDataGridHelpers.GetRowHeight(SfGrid, e.RowIndex); e.Height = height; e.Handled = true; } }
void HandleQueryRowHeightEventHandler(object sender, QueryRowHeightEventArgs e) { if (e.RowIndex > 0) { double height = SfDataGridHelpers.GetRowHeight(sfGrid, e.RowIndex); e.Height = height + (16 * Resources.System.DisplayMetrics.Density); e.Handled = true; } }
void DataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { //Sets height of the fifth row if (e.RowIndex != 0) { //Calculates and sets the height of the row based on its content. e.Height = dataGrid.GetRowHeight(e.RowIndex); e.Handled = true; } }
void HandleQueryRowHeightEventHandler(object sender, QueryRowHeightEventArgs e) { double height = SfDataGridHelpers.GetRowHeight(sfGrid, e.RowIndex); if (height > 35) { e.Height = height; e.Handled = true; } }
void appointments_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.appointments.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowSizingOptions, out autoHeight)) { if (autoHeight > 24) { e.Height = autoHeight; e.Handled = true; } } }
void DataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (DataGrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out double autoHeight)) { if (autoHeight + 4 > DefaultRowHeight) { e.Height = autoHeight + 4; e.Handled = true; } } }
void GridQueryRowHeight (object sender, QueryRowHeightEventArgs e) { double height = SfDataGridHelpers.GetRowHeight (SfGrid, e.RowIndex); if (height > 35) { e.Height = height; e.Handled = true; } else if (e.RowIndex == 0) { e.Height = 45; e.Handled = true; } }
void sfDataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.sfDataGrid.IsTableSummaryIndex(e.RowIndex)) { e.Height = 40; e.Handled = true; } else if (this.sfDataGrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out autoHeight)) { if (Height > this.sfDataGrid.RowHeight) { e.Height = autoHeight; e.Handled = true; } } }
/// <summary> /// Fired when a row comes in to View /// </summary> /// <param name="sender">DataGrid_QueryRowHeight sender</param> /// <param name="e">QueryRowHeightEventArgs parameter e</param> private void DataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { double height = SfDataGridHelpers.GetRowHeight(this.dataGrid, e.RowIndex); if (e.RowIndex > 0) { if (height > 35) { e.Height = height; e.Handled = true; } } }
/// <summary> /// Fired when a row comes in to View /// </summary> /// <param name="sender">DataGrid_QueryRowHeight sender</param> /// <param name="e">QueryRowHeightEventArgs parameter e</param> private void Datagrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (SfDataGridHelpers.IsCaptionSummaryRow(this.datagrid, e.RowIndex)) { e.Height = 40; if (Device.Idiom == TargetIdiom.Tablet) { e.Height = 50; } e.Handled = true; } }
/// <summary> /// Occurs when the row height is changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void SfGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { //To get the calculated height from GetAutoRowHeight method. double autoHeight; if (this.sfGrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, new GridRowSizingOptions(), out autoHeight)) { if (autoHeight > this.sfGrid.RowHeight) { e.Height = autoHeight; e.Handled = true; } } }
private void DataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { GridRowSizingOptions options = new GridRowSizingOptions(); options.ExcludeColumns.Add("DATA_PROGR"); if (e.RowIndex == 0) { e.Height = 30; } else { e.Height = Lista.GetRowHeight(e.RowIndex, options); } e.Handled = true; }
void GridQueryRowHeight(object sender, QueryRowHeightEventArgs e) { double height = SfDataGridHelpers.GetRowHeight(SfGrid, e.RowIndex); if (height > 35) { e.Height = height; e.Handled = true; } else if (e.RowIndex == 0) { e.Height = 45; e.Handled = true; } }
/// <summary> /// Occurs while setting the row heights. /// </summary> /// <param name="sender">The object of the sender.</param> /// <param name="e">An <see cref="Syncfusion.WinForms.DataGrid.QueryRowHeightEventArgs"/> that contains event data.</param> void sfDataGrid1_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.sfDataGrid1.TableControl.IsTableSummaryIndex(e.RowIndex)) { e.Height = 40; e.Handled = true; } else if (this.sfDataGrid1.AutoSizeController.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out height)) { if (height > this.sfDataGrid1.RowHeight) { e.Height = height; e.Handled = true; } } }
void AssociatedObject_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.AssociatedObject.IsTableSummaryIndex(e.RowIndex)) { e.Height = 50; e.Handled = true; } else if (this.AssociatedObject.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out Height)) { if (Height > this.AssociatedObject.RowHeight) { e.Height = Height; e.Handled = true; } } }
private void datagrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.datagrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out Height)) { // Reset the Height of the row to datagrid row height when the row height is less than the datagrid row height. if (Height < datagrid.RowHeight) { Height = datagrid.RowHeight; } e.Height = Height; e.Handled = true; } }
/// <summary> /// Occurs when the row height is changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void OnSfDataGridQueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.sfGrid.IsTableSummaryIndex(e.RowIndex)) { e.Height = 40; e.Handled = true; } else if (this.sfGrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out autoHeight)) { if (autoHeight > this.sfGrid.RowHeight) { e.Height = autoHeight; e.Handled = true; } } }
void SfDataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (e.RowIndex == 0) { e.Height = 30; e.Handled = true; } // Which customize the height of UnBoundRow. else if (this.SfDataGrid.IsUnBoundRow(e.RowIndex)) { e.Height = 40; e.Handled = true; } else { e.Height = this.SfDataGrid.RowHeight; e.Handled = true; } }
/// <summary> /// Which is used to customize the row height. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="QueryRowHeightEventArgs"/> contains the event data.</param> void SfDataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (e.RowIndex == 0) { e.Height = (int)DpiAware.LogicalToDeviceUnits(30.0f); e.Handled = true; } // Which customize the height of UnboundRow. else if (this.sfDataGrid.IsUnboundRow(e.RowIndex)) { e.Height = (int)DpiAware.LogicalToDeviceUnits(50.0f); e.Handled = true; } else { e.Height = (int)DpiAware.LogicalToDeviceUnits(35.0f); e.Handled = true; } }
private void AssociatedObject_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (e.RowIndex == 0) { //RowHeight 0 for HeadeRow e.Height = 0; e.Handled = true; } else if (e.RowIndex == 1) { //RowHeight 25 for CaptionSummaryRow e.Height = 25; e.Handled = true; } else { e.Height = 60; e.Handled = true; } }
private void DataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { double height = SfDataGridHelpers.GetRowHeight(dataGrid, e.RowIndex); if (e.RowIndex == 0) { e.Height = 45; e.Handled = true; } else { if (height > 35) { e.Height = height; } e.Handled = true; } //if (e.RowIndex > 0) // e.Height = 100; //e.Handled = true; }
void SfDataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (e.RowIndex == 0) { e.Height = 40; e.Handled = true; } // Which customize the height of UnBoundRow. else if (this.SfDataGrid.IsUnBoundRow(e.RowIndex)) { e.Height = 50; e.Handled = true; } else { e.Height = this.SfDataGrid.RowHeight; e.Handled = true; } }