add and remove rows in datagrid.
-
i have a small req, that is in window application, i have a datagrid with a check box in it, initially datagrid is empty/one blankrow . and two buttons AddButton, RemoveButton. if i press a addButton the everytime one row has to add to the datagrid,i have to able to enter the data in datagrid, If i select a check box of a row and press the removeButtonn that perticuler row has to remove from the datagrid. Can anyone help me for the addButton and remButton click events with code Thanks in advance. ushar raghu
-
i have a small req, that is in window application, i have a datagrid with a check box in it, initially datagrid is empty/one blankrow . and two buttons AddButton, RemoveButton. if i press a addButton the everytime one row has to add to the datagrid,i have to able to enter the data in datagrid, If i select a check box of a row and press the removeButtonn that perticuler row has to remove from the datagrid. Can anyone help me for the addButton and remButton click events with code Thanks in advance. ushar raghu
DataGrid has to be bound to a DataSource before you can add and remove a row. Adding and removing of row has to be done in a recordset. Well I used VB6.0 and I used datagrid if I want to display the entire contents of a table. I the it does not require to be linked to a Datasource I use MSFlexGrid instead. I haven't explored it from VB.Net yet. Hope this helps