.Net developer

Obtendo valores do grid








protected void grid_HtmlRowCreated(object sender, ASPxGridViewTableRowEventArgs e)
{

if (e.RowType != DevExpress.Web.ASPxGridView.GridViewRowType.Data) return;
int id_produto = (int)e.GetValue("ID_PRODUTO");
int id_produto_2 = (int)grid.GetRowValues(e.VisibleIndex, "ID_PRODUTO");
ASPxComboBox combo_cd_opcao_tipo_fretagem = grid.FindRowCellTemplateControl(e.VisibleIndex, null, "CD_OPCAO_TIPO_FRETAGEM") as ASPxComboBox;

e.Row.Cells[2].Text = id_produto.ToString() + "-" + id_produto_2.ToString();

}