Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2006, 02:59 PM
twb twb is offline
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default c# method Select()

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.
Code:
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






Similar Threads
Thread Thread Starter Forum Replies Last Post
DataTable.Select() method bug jpichler C# 3 October 5th, 2009 12:24 PM
Select row in GridView WITHOUT using Select button rao965 ASP.NET 2.0 Professional 1 February 15th, 2008 10:44 AM
onChange method of <select> in Html not working pushpa Classic ASP Databases 4 January 23rd, 2007 11:20 AM
Fill select box and select recordset value markd Classic ASP Databases 1 February 20th, 2006 06:41 PM
Dataset.Table.Select Method EricJ Pro VB.NET 2002/2003 2 September 25th, 2005 09:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.