Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Display cell value in message box
posted

Hi,

 

I am new to programming, and I am currently studying at a college in South Africa. I downloaded a trial version of Infragistics NetAdvantage.

I have created an Ultragrid called "UltraGrid1" and it is binded to a datasource called "UltraDataSource1".

Now I know this might sound like a stupid question, but I have tried for two days now to just get the following to work: I would like to click on a specific row, and the then after clicking on "button1", a messagebox should appear giving me the value from a specific column in the selected row.

Could anyone please help me, this will clear things up for me, I have to hand in a project, and if I can get this to work, the college will buy me a full version.

 

Regards

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    The rows that is activated when you click on it is returned by the control's ActiveRow property. The datatype of the rows displayed in the grid is UltraGridRow; this class exposes a Cells collection. You can index into this collection using the key of the associated column, and the resulting UltraGridCell instance exposes a Value property.

Children