Hi. I have WinForm Q1 2011.
I have a RadListControl and I fill it from a table in a database,
when a item is to large, dont appears the horizontal scroll bar.
however, if I put a long row from the design view, the horizontal scrollbar is added.
I have tried several things but nothing works, I hope your answer thanks.
This function fills the listControl.
I have a RadListControl and I fill it from a table in a database,
when a item is to large, dont appears the horizontal scroll bar.
however, if I put a long row from the design view, the horizontal scrollbar is added.
I have tried several things but nothing works, I hope your answer thanks.
lstAreasDisponibles
(listControl) properties :- autoscroll = true
- fitItemSize = false
- AutoSizeItems = true
This function fills the listControl.
private
void
cargarDatosListAreaDisponible()
{
string
query =
"SELECT Vista_Cat_Adscripcion_SIRH.Indice, Vista_Cat_Adscripcion_SIRH.Nombre "
+
"FROM Vista_Cat_Adscripcion_SIRH INNER JOIN "
+
" Vehiculos ON Vista_Cat_Adscripcion_SIRH.Indice = Vehiculos.IdArea "
+
"GROUP BY Vista_Cat_Adscripcion_SIRH.Indice, Vista_Cat_Adscripcion_SIRH.Nombre, "
+
" Vehiculos.Status "
+
"HAVING Vehiculos.Status = '1' "
+
"ORDER BY Vista_Cat_Adscripcion_SIRH.Nombre"
;
Query obj =
new
Query();
DataTable dt = obj.obtenerSelect(query);
string
[,] datos =
new
string
[dt.Rows.Count, dt.Columns.Count];
for
(
int
fila = 0; fila < dt.Rows.Count; fila++)
{
RadListDataItem rldi =
new
RadListDataItem();
rldi.TextWrap =
true
;
rldi.Text = dt.Rows[fila][1].ToString();
lstAreasDisponibles.Items.Add(rldi);
}
}