Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
How to add a row to a webdatagrid in c#
posted

Hello

I would like to know how to add a row to a webdatagrid in c # and add data from a table or view. Earlier in UltraWebDataGrid was this:

void Llenartabla(DataView mivista)
{
this.MiDatagrid.Rows.Clear();


UltraGridRow mifila= new UltraGridRow();
this.MiDatagrid.Rows.Add(row);


mifila.Cells.FromKey("Dia").Text = (mivista.Table.Columns.Contains("DiaP"))? mivista[0]["DiaP"].ToString();
mifila.Cells.FromKey("Horario").Text = (mivista.Table.Columns.Contains("HorarioP"))? mivista[0]["HorarioP"].ToString();
mifila.Cells.FromKey("Tipo").Text = "Pago";

}

In advance thank you very much