Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/02/2007, 15:33
Avatar de u_goldman
u_goldman
Moderador
 
Fecha de Ingreso: enero-2002
Mensajes: 8.031
Antigüedad: 22 años, 4 meses
Puntos: 98
Re: Problemas con Columnas de un Datagrid que se crean automaticamente

Que hayas llamado previamente al método DataBind del DataGrid y que tengas un DataSource válido

Código:
DataView dataView = item.List();
			if (dataView != null && dataView.Count > 0)
			{
				listDataGrid.Visible = true;
				listDataGrid.DataSource = dataView;
				listDataGrid.DataBind();
			}
			else
			{
				listDataGrid.Visible = true;
				listDataGrid.DataSource = dataView;
				listDataGrid.DataBind();
			}

...por aca un ciclo para recorrer el DataGrid

Salud
__________________
"El hombre que ha empezado a vivir seriamente por dentro, empieza a vivir más sencillamente por fuera."
-- Ernest Hemingway