Column value from index
Posted: Tue Dec 15, 2020 6:05 pm
Hello,
I´m trying to get a value from column by index, but it is not working.
public void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Data.Columns.ToString(), true);
}
If I call this, only column name will appear in databand, I also tried this:
public void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Data.Rows[0].ToString(), true);
}
But this time the rows in databand are the same (containing the same value).
If I call this:
public void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Data.Col1, true);
}
It is working, but I need to specify the column index, because columns are added dynamically.
Could youe help me?
Thank you. Filip
I´m trying to get a value from column by index, but it is not working.
public void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Data.Columns.ToString(), true);
}
If I call this, only column name will appear in databand, I also tried this:
public void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Data.Rows[0].ToString(), true);
}
But this time the rows in databand are the same (containing the same value).
If I call this:
public void txt_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Data.Col1, true);
}
It is working, but I need to specify the column index, because columns are added dynamically.
Could youe help me?
Thank you. Filip