Problems about DataGrid display data
Author: Wawe Time: 2002-9-28 Recommended Level: ★ View author information and author anthology
Author: Herd often encountered in the DataGrid to display data, first determine its value with the IF statement, and then decide how to display the problem is, the DataGrid is not directly write conditional statements, how to achieve it here, I used two methods.? . Method 1: After binding the data to DataSet, change the data in the inside, for example: sqldataadapter mycmd = new sqldataadapter (strsql, myconn); DataSet DS = New DataSet (); Mycmd.Fill (DS, "operator"); For (int i = 0; i