1-) C# Devexpress Athena - gridview güncelleme gridcontrol güncelleme gridcontrol refresh yapma gridview refresh yapma
public void MyGridSetRow(string Durum, string Aksiyon, string Sonuc)
{
try
{
gridView1.AddNewRow();
int rowHandle = gridView1.GetRowHandle(gridView1.DataRowCount);
if (gridView1.IsNewItemRow(rowHandle))
{
gridView1.SetRowCellValue(rowHandle, gridView1.Columns["Durum"], Durum);// yes no
gridView1.SetRowCellValue(rowHandle, gridView1.Columns["Aksiyon"], Aksiyon);
gridView1.SetRowCellValue(rowHandle, gridView1.Columns["Sonuc"], Sonuc);
}
gridControl1.Update();
Application.DoEvents();
}
catch (Exception ex)
{
MyGridSetRow("no", "HATA-> " + ex.Message, "Başarısız.");
}
}
private void gridView1_RowStyle(object sender, RowStyleEventArgs e)
{
if (e.RowHandle >= 0)
{
// e.Appearance.BackColor = Color.Salmon;
// e.Appearance.BackColor2 = Color.SeaShell;
string category = gridView1.GetRowCellDisplayText(e.RowHandle, gridView1.Columns["Durum"]);
if (category == "Unchecked")
{
e.Appearance.BackColor = Color.Red;
//e.Appearance.BackColor2 = Color.SeaShell;
}
}
}
1-) gridview güncelleme gridcontrol güncelleme gridcontrol refresh yapma gridview refresh yapma
gridControl1.Update();
2-) AŞAĞIDAKİ LİNK REALTİME GRİDVİEW YAPAR
https://documentation.devexpress.com/CoreLibraries/DevExpress.Data.RealTimeSource.class
http://cancevikoglu.blogspot.com.tr/2017/08/devexpress-realtimesource-kullanm.html
https://www.devexpress.com/Support/Center/Example/Details/E5204/how-to-implement-real-time-data-server-and-use-rtd-worksheet-function