"Agnes" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> In myDatagrid, there is 3 columns, account code, debit,credit.
> If the user input some particular a account code in column1 , i need
> to based on the contect of column1, to disable
> column2(debit),column3(credit) I try processcmdkey , onKeypress,
> onKeydown event already ( set e.handled = false , just like textbox
> event) However, it still let the user input anyfield ( after use
> press'tab', the field will gone blank)
> My aim is, user press any key, the column should shown nothing .
> I try the keypress event in Textbox, (it is sucessful, but I am fail
> in Datagrid)
>
There should be a solution for your problem here... If not, you may need to
mix and match solutions:
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp
--
Lucas Tam ((E-Mail Removed))
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/