How to get a cell value or row value in ControlGrid Level 1 GridView C# - DevExpress -


I can get cell value wonder if how I ControlGrid Level 1 < Code> GridView .

I clicked before the event

  private void gvPrerequisit_Click (object sender, EventArgs e) {MessageBox (gvPrerequisit.GetFocusedRowCellValue ( "ProspectusPrequisitID"). With ToString had tried ()); }  

But you'll see this message on the debugging mode

  System.ArgumentNullException: Value can not be null.  

Here is a screenshot on the control grid. Enter image details here

Then to get the value of the cell. Enter image details here

Can anyone help? Thank you.

First you GridView

Click to cast event GridView1

  Gridwu gv = (GridView) GridView1.GetDetailView (GridView1.FocusedRowHandle, 0);  

It is GV your Gridwu now 2

, you can call this value ...

  gv.GetFocusedRowCellValue ("columnname"))  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -