Пример #1
0
		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;
			}
		}
Пример #4
0
 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;
 }
Пример #5
0
 void GridQueryRowHeight(object sender, QueryRowHeightEventArgs e)
 {
     if (e.RowIndex > 0)
     {
         double height = SfDataGridHelpers.GetRowHeight(SfGrid, e.RowIndex);
         e.Height  = height;
         e.Handled = true;
     }
 }
Пример #6
0
 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;
     }
 }
Пример #8
0
        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;
         }
     }
 }
Пример #10
0
 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;
         }
     }
 }
Пример #11
0
		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;
			}
		}
Пример #12
0
 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;
            }
        }
Пример #15
0
        /// <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;
                }
            }
        }
Пример #16
0
        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;
        }
Пример #17
0
        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;
            }
        }
Пример #18
0
 /// <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;
         }
     }
 }
Пример #19
0
 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;
            }
        }
Пример #21
0
 /// <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;
         }
     }
 }
Пример #22
0
 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;
     }
 }
Пример #23
0
 /// <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;
     }
 }
Пример #24
0
 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;
     }
 }
Пример #25
0
        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;
        }
Пример #26
0
 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;
     }
 }