We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How i can get the value of a cell ??

Thread ID:





1077 Sep 19,2002 02:35 PM Sep 20,2002 01:39 AM Windows Forms 1
Tags: GridControl
Joao Miguel Calix
Asked On September 19, 2002 02:35 PM

How i can get the value of a cell in GridDataBoundGrid. How i can move to a determinated cell ? Thanks Best Regards

Clay Burch [Syncfusion]
Replied On September 20, 2002 01:39 AM

To get a value at cell(2,3), use 'VB.NET Dim cellValue as String = Me.GridDataBoundGrid1(2, 3).Text 'or Dim o as Object = Me.GridDataBoundGrid1(2, 3).CellValue //C# string cellValue = me.gridDataBoundGrid1[2,3].Text; //or object o = me.gridDataBoundGrid1[2,3].CellValue; Using an indexer on the grid returns the GridStyleInfo object for that indexed cell. Once you have the style, you can then get the value or the text or any other style property. To move the currentcell to a particular position, you call the MoveTo method of the CurrentCell property of the grid. So, to move to cell 2,3, use 'VB.NET Me.GridDataBoundGrid1.CurrentCell.MoveTo(2,3) //C# this.gridDataBoundGrid1.CurrentCell.MoveTo(2,3);


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.