private void DataGrid_GridTapped(object sender, GridTappedEventArgs e)
        {
            selectedRowIndex = e.RowColumnIndex.RowIndex;
            var rowData = dataGrid.GetRecordAtRowIndex(selectedRowIndex);

            walletSelected = dataGrid.GetCellValue(rowData, "WalletName").ToString();
        }
        private void ShowTransactionDetailDialog()
        {
            ObservableCollection <TransactionDisplayData> data =
                new ObservableCollection <TransactionDisplayData>();
            string currency      = "";
            string transSizeUnit = "";
            string cellValue;

            foreach (var column in dataGrid.Columns)
            {
                if ((column.MappingName == "StatusIcon") || (column.MappingName == "LabelStatusIcon"))
                {
                    continue;
                }

                var rowData = dataGrid.GetRecordAtRowIndex(selectedRowIndex);

                if (column.MappingName == "Currency")
                {
                    currency = dataGrid.GetCellValue(rowData, column.MappingName).ToString();
                    continue;
                }

                if (column.MappingName == "TransactionSizeUnit")
                {
                    transSizeUnit = dataGrid.GetCellValue(rowData, column.MappingName).ToString();
                    continue;
                }

                cellValue = dataGrid.GetCellValue(rowData, column.MappingName).ToString();

                if ((column.MappingName == "Debit") || (column.MappingName == "TransactionFee") ||
                    (column.MappingName == "Amount"))
                {
                    cellValue += " " + currency;
                }
                else if (column.MappingName == "TransactionSize")
                {
                    cellValue += " " + transSizeUnit;
                }

                data.Add(new TransactionDisplayData(column.MappingName, cellValue));
            }

            SfDataGrid grid = new SfDataGrid(Context)
            {
                RowHeight           = 30,
                HeaderRowHeight     = 0,
                GridStyle           = new SyncFusionUtilities.CustomGridStyle(),
                AutoGenerateColumns = false,
                ColumnSizer         = ColumnSizer.None,
                FrozenColumnsCount  = 1,
                ItemsSource         = data
            };

            grid.Columns.Add(SyncFusionUtilities.DataGridUtilities.CreateTextColumn("ColumnOneData", "One", "", 125));
            grid.Columns.Add(SyncFusionUtilities.DataGridUtilities.CreateTextColumn("ColumnTwoData", "Two", "", 500));

            var builder = new Android.Support.V7.App.AlertDialog.Builder(Context);

            builder.SetTitle("Transaction Details");

            LayoutInflater layoutInflater = Activity.LayoutInflater;

            View dialogView = layoutInflater.Inflate(Resource.Layout.customdialoglayout, null);

            LinearLayout lay = dialogView.FindViewById <LinearLayout>(Resource.Id.customLinearLayout);

            lay.AddView(grid);

            builder.SetView(dialogView);

            builder.SetNegativeButton(Android.Resource.String.Ok, (senderAlert, args) => { });

            builder.Show();
        }