Llenar un control Infragistics.WebUI.WebCombo UltraWebcombo de infragistics

código fuente para llenar un combo de infragistics con un DataSet "se asume que el DataSet esta lleno de Datos y con dos columnas tipeadas Codigo y Nombre"  si el parametro de entrada FilaBlanco es "true" se adiciona una fila vacia al control UltraWebCombo de infragistics

public void LlenarWebCombo(System.Data.DataSet dsDatos, Infragistics.WebUI.WebCombo.WebCombo WebCombo, bool FilaBlanco)

{

WebCombo.DataValueField = "CODIGO";

WebCombo.DataTextField = "NOMBRE";

WebCombo.DataSource = dsDatos;

WebCombo.DataBind();

if (FilaBlanco)

{

WebCombo.Rows.Insert(0, new Infragistics.WebUI.UltraWebGrid.UltraGridRow());

}

}

About omaracostacasas

ING SOFTWARE
This entry was posted in Infragistics. Bookmark the permalink.

Leave a comment