Datagridview
-
i need an event in datagridview that will be called for every row that is binded to the grid in windows application. is there an event?
-
i need an event in datagridview that will be called for every row that is binded to the grid in windows application. is there an event?
Why do you need the event? there is always an option to access the data that is binded to the datagrid. If you populate your grid with a dataset try
foreach (System.Data.DataRow dr in dsModApp.Tables[0].Rows) { myList.Add(dr.ItemArray[0].ToString()); }
here i retireve the first column that is my select statement and thus position [0] in the dataset that is returned. Then i add the information to an arraylist for other purposes. hope it helps Riaan Booyzen -
i need an event in datagridview that will be called for every row that is binded to the grid in windows application. is there an event?
Hi, You can use the RowsAdded event on the grid. It is fired when you add a row to the grid... It includes when you bind a dataset, then it is fired for every row.