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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s