muratboy31 Posted June 10, 2015 Share Posted June 10, 2015 Arkadaşlar merhaba, aşağıdaki gibi ilginç bir hata alıyorum, nedeni ne olabilir ? Tüm kolonlar ve satırlarda veri var, yane hiç boş cell yok... Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 10, 2015 Editor Share Posted June 10, 2015 Kullandıgınız devexpress sürümünde bir problem olabilir. Eğer RowExpand eventında bir kod yazmadıysanız muhtemelen devexpress sürümünüzden kaynaklı. Bu tür buglar bir sonraki sürümde düzeltilir eğer son sürüm kurmadıysanız son sürüm bir devexpress kurabilirsiniz. Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted June 10, 2015 Author Share Posted June 10, 2015 1.4.2 vardı sildim 13.1 yükledim yine aynı... Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted June 10, 2015 Author Share Posted June 10, 2015 1.4.1 denedim yine aynı hata... kırmızı daire için aldığım filtreyi açıp bilgi işlem hariç neyi seçersem seçiym aynı hatayı veriyor... Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted June 11, 2015 Author Share Posted June 11, 2015 Arkadaşlar merhaba, sorun bundan kaynaklı, bu kodu kaldırınca sorunsuz çalışıyor ancak display text olmuyor yane sadece rakam geliyor Dolar, Euro yada TL olarak göremiyorum... Bunu nasıl aşabilirim acaba ? private void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { try { CultureInfo USD = new CultureInfo("en-US"); CultureInfo EUR = new CultureInfo("fr-FR", false); CultureInfo TL = new CultureInfo("tr-TR", false); ColumnView view = sender as ColumnView; if (e.Column.FieldName == "Onaylanan" && e.ListSourceRowIndex != DevExpress.XtraGrid.GridControl.InvalidRowHandle) { string currencyType = view.GetRowCellValue(e.ListSourceRowIndex, gridView1.Columns["Para_Birimi"]).ToString(); decimal para = Convert.ToDecimal(e.Value); switch (currencyType) { case "USD": e.DisplayText = string.Format(USD, "{0:C}", para); break; case "TL": e.DisplayText = string.Format(TL, "{0:C}", para); break; case "EUR": e.DisplayText = string.Format(EUR, "{0:C}", para); break; } } if (e.Column.FieldName == "Gerceklesen" && e.ListSourceRowIndex != DevExpress.XtraGrid.GridControl.InvalidRowHandle) { string currencyType = view.GetRowCellValue(e.ListSourceRowIndex, gridView1.Columns["Para_Birimi"]).ToString(); decimal para = Convert.ToDecimal(e.Value); switch (currencyType) { case "USD": e.DisplayText = string.Format(USD, "{0:C}", para); break; case "TL": e.DisplayText = string.Format(TL, "{0:C}", para); break; case "EUR": e.DisplayText = string.Format(EUR, "{0:C}", para); break; } } if (e.Column.FieldName == "Kalan" && e.ListSourceRowIndex != DevExpress.XtraGrid.GridControl.InvalidRowHandle) { string currencyType = view.GetRowCellValue(e.ListSourceRowIndex, gridView1.Columns["Para_Birimi"]).ToString(); decimal para = Convert.ToDecimal(e.Value); switch (currencyType) { case "USD": e.DisplayText = string.Format(USD, "{0:C}", para); break; case "TL": e.DisplayText = string.Format(TL, "{0:C}", para); break; case "EUR": e.DisplayText = string.Format(EUR, "{0:C}", para); break; } } } catch (Exception Ex) { MessageBox.Show(Ex.Message); } } Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 11, 2015 Editor Share Posted June 11, 2015 Ammy yollarmısın özelden bir bakayım. Quote Link to comment Share on other sites More sharing options...
FiRewaLL Posted June 11, 2015 Share Posted June 11, 2015 Kardeşim Süzme yaptığında İlgili Columunlardan birinin özelliği ya text yada Numeric olarak belirtmişsin ama gelen veride ile uyuşmuyor ondan kaynaklı sorun yaşıyorsundur. Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted June 11, 2015 Author Share Posted June 11, 2015 (edited) ama gelen veri numeric üçünde de, sadece filtre yaparken sorun oluyor !!! çözdüm sanıyorum :) object currencyType = view.GetListSourceRowCellValue(e.ListSourceRowIndex, "Para_Birimi"); şimdilik sorun yok gibi... Edited June 11, 2015 by muratboy31 Quote Link to comment Share on other sites More sharing options...
CEKİC@N Posted June 11, 2015 Share Posted June 11, 2015 Hadi Geçmiş Olsun Çözülmüş... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.