Hello Lance,
Thast the way I do it, 'dgKeuzeLijst is' a datagrid. On a DoubleClick I
select the row and open a new window on a single click I just dselect the
whole row
Hope it helps
Jean Paul
private void dgKeuzelijst_DoubleClick(object sender, System.EventArgs e)
{
if (dgKeuzelijst.CurrentRowIndex >= 0)
{
dgKeuzelijst.Select(dgKeuzelijst.CurrentRowIndex);
WagenFiche myWagenFiche = new
WagenFiche(Convert.ToInt16(dgKeuzelijst[dgKeuzelijst.CurrentRowIndex,0]));
myWagenFiche.ShowDialog();
}
}
private void dgKeuzelijst_MouseUp(object sender,
System.Windows.Forms.MouseEventArgs e)
{
if (dgKeuzelijst.CurrentRowIndex >= 0)
dgKeuzelijst.Select(dgKeuzelijst.CurrentRowIndex);
}
> Is there a way to disable the cell selection in datagrid
> and only allow the row selection? Examples will be better.
> Any help will be much appreciated.
>
> lance