twb

twb

  • NA
  • 1
  • 0

c# method Select()

Nov 18 2006 2:54 PM
I am a beginer to c# so any help would be appreciated. I am tryig to call a select and unselect method that will select and uselect rows from a datagrid that is populated with data from a mysql database. The error I get is 'System.Web.UI.WebControls.DataGrid' does not contain a definition for 'UnSelect'when I build the application. using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; // this is what I have added using MySql.Data; using MySql.Data.MySqlClient; using System.Xml; using MySql.Data.Types; private void Donext() { //move cursor to the next record if (DataGrid1.SelectedIndex != myDataSet.Tables[0].Rows.Count -1) { DataGrid1.Unselect(DataGrid1.SelectedIndex); DataGrid1.SelectedIndex++; DataGrid1.Select(DataGrid1.SelectedIndex); } } Thank you TWB