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.
Syncfusion Feedback

HOW CAN I GET THE VALUE OF A CELL, IN A ROW SELECTED IN GRIDDATABOUND CONTROL?

Thread ID:

Created:

Updated:

Platform:

Replies:

116996 Jul 16,2014 03:38 PM UTC Jul 22,2014 07:49 AM UTC Windows Forms 3
loading
Tags: GridDataBoundGrid(Classic)
Juan Zavala
Asked On July 16, 2014 03:38 PM UTC

HELLO Syncfusion. 
I´M GRIDDATABOUND FILLING WITH A DATASET, AND I NEED TO GET THE VALUE OF A CELL OF USER SELECT ROW. 

THANKS AND GREETINGS.

Maniratheenam Sehar [Syncfusion]
Replied On July 18, 2014 05:18 PM UTC

Hi Juan Zavala,

 

Thank you for your interest in Syncfusion Products.

 

We would like to let you know that the reported query can be resolved just by use of below code snippet,

 

CodeSnippet:

 

GridCurrentCell cc = this.GridDataBoundGrid1.CurrentCell;

int rowIndex = cc.RowIndex;

 

 

For your better convenience, we have added a sample below,

http://www.syncfusion.com/downloads/support/directtrac/general/GDBC-Sample-1345162240.zip

 

Please let us know, if you have any further concerns.

 

Regards,

ManiRatheenam S


Juan Zavala
Replied On July 21, 2014 10:31 PM UTC

HELLO SYNCFUSION. 
FIRST, THANK YOU FOR YOUR PROMPT REPLY, MUCH SERVED ME, NOW I DOUBT THAT CAME WHEN CAN GET ANY CELL VALUE OF SELECTED ROW INSIDE AND NOT ONLY ROWINDEX, BUT, FOR EXAMPLE THE VALUE OF CELL WITH CONTENTS 3 OR THE NAME "NOMINAID". 

THANKS && REGARDS.

Maniratheenam Sehar [Syncfusion]
Replied On July 22, 2014 07:49 AM UTC

Hi Juan Zavala,

 

Thanks for the update.

 

Query:

RowIndex with corresponding cell value

We would like to convey that your reported query can be achieved by codesnippet given below,

Codesnippet:

GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;

      int rowIndex = cc.RowIndex;

      int colIndex = cc.ColIndex;

 MessageBox.Show("Row Index=" + rowIndex + "\n" + "Column Index=" + colIndex + "\n" + "Cell Value=" + this.gridDataBoundGrid1[rowIndex, colIndex].Text);

 

Where “this.gridDataBoundGrid1[rowIndex, colIndex].Text” will get the value of the selected cell.

Moreover, for your better convenience, we’ve added a sample below,

http://www.syncfusion.com/downloads/support/directtrac/general/CellValue2002924064.zip

 

 

Please let us know, if you have any further concerns.

 

Regards,

ManiRatheenam S


CONFIRMATION

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.

Warning Icon 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.Close Icon

;