Skip to content

Replies

0
william gm
william gm answered on Jan 30, 2017 6:06 PM

Awesome, thanks.

Another question, is it possible to start looping from a certain index? Let's say from cell[2]?

0
william gm
william gm answered on Jan 27, 2017 2:42 PM

I only want to loop through the rows that are checked (value "seleccionar")

0
william gm
william gm answered on Jan 26, 2017 6:44 PM

Great it worked, I just need to loop through each of the rows that are only selected, the checkbox is a boolean. I tried the following:

if (Convert.ToBoolean(grdPart.ActiveRow.Cells["Seleccionar"].Value) == true)
{
foreach (UltraGridRow row in this.grdPart.Rows)
{

foreach (UltraGridCell cell in row.Cells)
{
MessageBox.Show("" + cell.Value.ToString() +" | " + cell.Column.Key);
}
}
}

But it's not working, am I missing something?

0
william gm
william gm answered on Jan 26, 2017 3:17 PM

Here is a link to the image.

https://postimg.org/image/3qo44owpj/

0
william gm
william gm answered on Sep 28, 2016 2:41 PM

Milko.

Excuse my english, maybe I didn't make myself clear. Anyways, I achieved what I wanted by doing the following.

UltraGridColumn column = this.grdSubfamilias.DisplayLayout.Bands[0].Columns[0];
UltraGridRow row = this.grdSubfamilias.ActiveRow;
object cell = row.Cells[column].Value; // CLASS ID VALUE
MessageBox.Show("You clicked: " + cell);

Whenever the user double clicks a row on an UltraGrid, the value pops on a MessageBox.

Thanks for the help Milko!

Have a nice day.

0
william gm
william gm answered on Sep 27, 2016 2:55 PM

Thanks for the help. Is this the only way to do this? I'm on an ERP environment and have few options available.