problem in Datagrid
-
Dear friends I have one datagrid which has data from one of the table as employee_master. on click of any record on the grid I want to get the value of first cell that is employee code. but when I clicked first time it does not give me any value. on second time click it gives me the value. How can I get the value of the cells which I need in first click only. Your quick response will be highly appreciated. Thanks Murtuza
-
Dear friends I have one datagrid which has data from one of the table as employee_master. on click of any record on the grid I want to get the value of first cell that is employee code. but when I clicked first time it does not give me any value. on second time click it gives me the value. How can I get the value of the cells which I need in first click only. Your quick response will be highly appreciated. Thanks Murtuza
Should you work with a dataGridView, try to treat other events like
CellClick
orCellMouseClick
SkyWalker
-
Should you work with a dataGridView, try to treat other events like
CellClick
orCellMouseClick
SkyWalker
As an expansion to this, use a DataGridView and a BindingSource. It provides superior data management capabilities. Search the CP articles for a good one on data binding and the datagridview