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. Image for the cookie policy date

How I can find a label in a GridDataUnboundColumn by code

How I can find a label in a GridDataUnboundColumn by code.

I'm looping the rows like this:
 for (int i = 0; i < GridObjetos.Model.View.Records.Count; i++)
{}

1 Reply

JG Jai Ganesh S Syncfusion Team July 22, 2014 11:54 AM UTC

Hi Herbert,

Thank you for using Syncfusion Products.

We have analyzed your query. You can get the GridDataUnboundVisibleColumn cell value by using  the following code example:

Code Snippet [C#]:

 

var columnIndex=this.SyncGrid.Model.CurrencyManager.CurrentCell.CellRowColumnIndex.ColumnIndex;

var rowIndex = this.SyncGrid.Model.CurrencyManager.CurrentCell.CellRowColumnIndex.RowIndex;

var value = this.SyncGrid.Model[rowIndex, columnIndex].CellValue;

 

 

We have also prepared the sample based on this and please find the sample under the following location:

Sample:

http://www.syncfusion.com/downloads/support/directtrac/127577/GridDataControlSample-582783667.zip

Please let us know  if you need further assistance.

Thank you,

Jai Ganesh S


Loader.
Live Chat Icon For mobile
Up arrow icon