RakhiKalra
Programmer
Hi,
I am new to .net programming.i have been given an assignment to make a windows desktop application using c#.
I have a particular need to enter data in datagrid and edit the grid data as well.there is a country form in which a grid with 2 columns-Countryid and Country Name. Country id is hidden hence only one column-country Name, is shown to the user. apart from this grid i have 2 buttons-edit and add.
by default grid is made readonly(using table style).
when the user clicks on edit button , only the selected row shud become editable.as soon as focus is lost from that editable cell, it shud become uneditable.plus the edited data shud b saved to database.
when the user clicks on add button,an empty row shud b inserted into the grid and shud b editable.here also as soon as focus is lost from that cell, data is to b saved into the database.
i am not getting the following things-
-the events which shud b captured(apart from button_click).
-the properties to make selected cell(or row) editable and eneditable.
please help
Rakhi
I am new to .net programming.i have been given an assignment to make a windows desktop application using c#.
I have a particular need to enter data in datagrid and edit the grid data as well.there is a country form in which a grid with 2 columns-Countryid and Country Name. Country id is hidden hence only one column-country Name, is shown to the user. apart from this grid i have 2 buttons-edit and add.
by default grid is made readonly(using table style).
when the user clicks on edit button , only the selected row shud become editable.as soon as focus is lost from that editable cell, it shud become uneditable.plus the edited data shud b saved to database.
when the user clicks on add button,an empty row shud b inserted into the grid and shud b editable.here also as soon as focus is lost from that cell, data is to b saved into the database.
i am not getting the following things-
-the events which shud b captured(apart from button_click).
-the properties to make selected cell(or row) editable and eneditable.
please help
Rakhi