1-) C# Athena - GRİDCONTROLDE HÜCREYE DEĞER EKLEME VEYA ALMA
GRİDCONTROLDE HÜCREYE DEĞER EKLEME VEYA ALMA
1-) DEĞER ALMA
string W_onay = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["CPWORK_RECNO"]).ToString();
2-) DEĞER EKLEME
public void AddRow()
{
try
{
gridView1.AddNewRow();
int rowHandle = gridView1.GetRowHandle(gridView1.DataRowCount);
if (gridView1.IsNewItemRow(rowHandle))
{
gridView1.SetRowCellValue(rowHandle, gridView1.Columns["GUNCEL"], "no");// yes no
gridView1.SetRowCellValue(rowHandle, gridView1.Columns["AD"], "Muşavir Tanımı V.10 12/12/2017");
}
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}