how to add record to database with gridjanus and bindingnavigator
-
hi every one i have a bindingnavigator in form and a gridex in form and i set addnew item with value null and i will in bindingnavigatorn in method click a record add to grid but when table is null not add a record to grid and other record to add a grid but i have one click in colum code .please help mee my source code: fatemeBindingSource.AddNew(); int code = Convert.ToInt32(this.fatemeTableAdapter.maxcode()); ((DataRowView)fatemeBindingSource.Current).Row["code"] = code + 1; i dont english as well.please help me best a regards.
-
hi every one i have a bindingnavigator in form and a gridex in form and i set addnew item with value null and i will in bindingnavigatorn in method click a record add to grid but when table is null not add a record to grid and other record to add a grid but i have one click in colum code .please help mee my source code: fatemeBindingSource.AddNew(); int code = Convert.ToInt32(this.fatemeTableAdapter.maxcode()); ((DataRowView)fatemeBindingSource.Current).Row["code"] = code + 1; i dont english as well.please help me best a regards.
that value methoad max code= SELECT ISNULL(MAX(code),0) AS ID FROM fateme that in dataset table can not show record added in grid and how record added in grid i have in selected record i should be in find row of grid record to be add but i dont. pleeeeeeeeeeese help meeeeeeeeeeee