private async void DataGrid_GridLongPressed(object sender, GridLongPressedEventArgs e) { if (e.RowColumnIndex.ColumnIndex > 0) { if (e.RowData is SMSModel sms) { await DisplayAlert("SMS", sms.Body, "OK"); } } }
/// <summary> /// Fired when grid is long pressed /// </summary> /// <param name="sender">DataGrid_GridLongPressed event sender</param> /// <param name="e">DataGrid_GridLongPressed args e</param> private void DataGrid_GridLongPressed(object sender, GridLongPressedEventArgs e) { this.currentColumn = this.dataGrid.Columns[e.RowColumnIndex.ColumnIndex].MappingName; this.popupLayout.ShowAtTouchPoint(); }
private void SfGrid_GridLongPressed(object sender, GridLongPressedEventArgs e) { this.CloseEditWindow(); }
void SfGrid_GridLongPressed(object sender, GridLongPressedEventArgs e) { this.currentColumn = this.sfGrid.Columns[e.RowColumnIndex.ColumnIndex].MappingName; this.sfPopup.ShowAtTouchPoint(); }
async void DataGrid_GridLongPressed(object sender, GridLongPressedEventArgs e) { var sca = (ScadenzeInfo)e.RowData; var page = new ScadenzeDetails(sca); await Navigation.PushAsync(page); }