hi guys, im having problems with the DataGridView
take a look at this,
the entry starts with entering the
ItemCode in the DataGridView
but after entering, it will be best to display its
Description ,
i tried the events RowLeave,RowEnter,RowValidated using the following code:
Int32 selectedRowCount = pOItemsDataGridView.Rows.GetRowCount(DataGridViewElementStates.Selected);
InventoryDataSet.POItemsRow poItRow = inventoryDataSet.POItems.NewPOItemsRow();
poItRow.Description = Convert.ToString(itemsTableAdapter.getDescription(pOItemsDataGridView.Rows[selectedRowCount].Cells[0].Value.ToString()));
inventoryDataSet.POItems.Rows.Add(poItRow);
i also tried using this code:
Int32 selectedRowCount = pOItemsDataGridView.Rows.GetRowCount(DataGridViewElementStates.Selected);
pOItemsDataGridView.Rows[selectedRowCount].Cells[1].Value=itemsTableAdapter.getDescription(pOItemsDataGridView.Rows[selectedRowCount].Cells[0].Value.ToString()
but it didn't work, i also tested the values got, using a MessageBox and the previous data, PIN,CLIP, (which is already present the third one is the one to be added...) there's no problem