Exemplo n.º 1
0
        private void radListView1_CellCreating(object sender, ListViewCellElementCreatingEventArgs e)
        {
            DetailListViewDataCellElement cell = e.CellElement as DetailListViewDataCellElement;

            if (cell != null && cell.Data.Name == "title")
            {
                // cell.Padding = new Padding(50, 50, 50, 50);
                cell.BackColor = Color.Red;
                e.CellElement  = new CustomDetailListViewDataCellElement(cell.RowElement, e.CellElement.Data);
            }
        }
Exemplo n.º 2
0
        private void radListViewClientList_CellCreating(object sender, ListViewCellElementCreatingEventArgs e)
        {
            DetailListViewDataCellElement cell = e.CellElement as DetailListViewDataCellElement;

            if (cell != null && cell.Data.Name == "Operation")
            {
                e.CellElement = new CustomWaiverProcessListViewCellElementProcess(cell.RowElement, e.CellElement.Data);
            }
            else if (cell != null && cell.Data.Name == "Reference")
            {
                e.CellElement = new CustomWaiverProcessListViewCellElementReference(cell.RowElement, e.CellElement.Data);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Handles the CellCreating event of the lvParts control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="ListViewCellElementCreatingEventArgs" /> instance containing the event data.</param>
 private void lvParts_CellCreating(object sender, ListViewCellElementCreatingEventArgs e)
 {
     e.CellElement.TextWrap = true;
 }