Re: Datagrid - end edit?
- From: "Bart Mermuys" <bmermuys.nospam@xxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 16:34:23 +0200
Hi,
"John J. Hughes II" <no@xxxxxxxxxxx> wrote in message
news:OjzwK7v2FHA.1420@xxxxxxxxxxxxxxxxxxxxxxx
> Bart,
>
> Thank you very much for the help!
>
> Your suggestion and fixing another error in my code fixed the problem 99%
> now I just have one minor problem which I guess I can ignore but if you
> have a suggestion I would appreciate it.
>
> The Abort and Commit are being called correctly when the windows closes,
> cancel button is press, or the ok button is pressed and the data is either
> saved or not saved as expected which is great.
>
> The pencil disappears when the commit it called but it does not disappear
> when the abort is call. Do you have any idea how I can get the pencil to
> disappear when the abort is call?
Doesn't seem to look like a big problem, add a call to Invalidate in the
CancelClick handler (similar to the OkClick handler):
private void pmi_CancelClick(object sender, EventArgs e)
{
if ( _isEditing )
{
DataGridTableStyle.DataGrid.EndEdit( this, -1, true);
DataGridTableStyle.DataGrid.Invalidate(true);
}
else
{
HideUserControl();
}
}
HTH,
Greetings
>
> Below is the sequence being called:
> ExDataGridPhoneMenu - SelectedValueChanged
> ExDataGridPhoneMenu - pmi_OnCancel
> ExDataGridPhoneMenu - Abort
>
> I would think "DataGridTableStyle.DataGrid.EndEdit( this, -1, true );"
> would clear the pencil since the abort function really does not affect the
> datagrid directly.
>
> The panel is the control hosted by the cell and is where I draw a
> representation of the data. PMI is the edit control to edit the data but
> is not displayed unless in edit mode. Since the data is graphical in
> nature it can not be edited from the keypad or the cell (not big enough)
> the PMI control is shown to allow for more editing room.
>
> Regards,
> John
>
.
- Follow-Ups:
- Re: Datagrid - end edit?
- From: John J. Hughes II
- Re: Datagrid - end edit?
- References:
- Datagrid - end edit?
- From: John J. Hughes II
- Re: Datagrid - end edit?
- From: Bart Mermuys
- Re: Datagrid - end edit?
- From: John J. Hughes II
- Datagrid - end edit?
- Prev by Date: Re: Datagrid - end edit?
- Next by Date: Re: Datagrid - end edit?
- Previous by thread: Re: Datagrid - end edit?
- Next by thread: Re: Datagrid - end edit?
- Index(es):