Hi,
I have a ultragrid with 2 bands ( band[0] and band [1])
In band[1] i have placed a button on a cell. Anybody please let me know that how can i assign a text for that button.
Note:
If that button has placed in band[0] i can able to assign the text in initialize row event. like this,
e.Row.Cells[..].Value = "some text";
but i am not sure about the child band buttons
Hi Trausti,
Thanks for your idea. it works.
Well, I have 2 bands ( band[0] and band[1] ). In band[1] i am binding some bool values. By automatically it will binded as a checkboxes for those columns and it is showing the checkbox on the column header in each node of the band[1]. I want to remove the check box from the column header except the caption of the header (i.e> [chekbox] "column header text" )
How to do that?
Thanks in advance.
Saravanan Nagarajan
Do you mean how to add an unbound column to the child band?
If that's what you mean then basics of it is like this (just code it better, check for the band, etc):
col = e.Layout.Bands(1).Columns.Add("MyNewCol", "Some Caption")
col.DataType = GetType(String)
col.CellActivation = UltraWinGrid.Activation.AllowEdit
Trausti
HI Trausti,
Thanks for your reply. It is working fine.
Can you please tell me, how can i make the cell which is editable in the child band
If e.Row.Band.Index = 1 Then 'This row is in the child band End If
If e.Row.Band.Index = 1 Then
'This row is in the child band
End If
End Sub
It might also make sense to set this in the datasource, rather than the grid.