Frage

I am developing a windows application using syncfusion controls. I have a grid grouping grid and I want to set cursor position to the end of the text if user click any where in a cell. How i can do this?

War es hilfreich?

Lösung

private void grd_TableControlCurrentCellChanged(object sender, GridTableControlEventArgs e)
{
   GridDropDownGridListControlCellRenderer cr = 
      gcc.Renderer as GridDropDownGridListControlCellRenderer;
          if (cr != null)
          {
              cr.TextBox.SelectionStart = cr.TextBox.TextLength;
              cr.TextBox.SelectionLength = 0;
          }
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top