Citat:
bokac:Nije mi jasno zasto nema takav property za kursor kod DataGrid-a?
Ima, samo je sakriven. A to je postignuto tako sto mu je dodeljen (Cursor property-ju) sledeci atribut i vrednost za atribut:
Code:
[EditorBrowsable(EditorBrowsableState.Never)]
i zbog toga ga nema u code completition-u.
Probaj da kompajliras nesto tipa
Code:
dataGrid1.Cursor = neki_kursor;
videces da nece izbaciti ni compilation ni run-time error.
Resenje za tebe:
Code:
private void dataGrid1_MouseEnter(object sender, System.EventArgs e)
{
this.Cursor = Cursors.Hand;
}
private void dataGrid1_MouseLeave(object sender, System.EventArgs e)
{
this.Cursor = Cursors.Arrow;
}
If it's a girl then they're gonna call it Sigourney, after an actress. If it's a boy, then they're gonna call it Rodney, after Dave!