[IronPython] How to conditionally alter DataGridViewButtonColumn?
Cheemeng
lcm at spiralcomms.com
Fri Aug 4 04:12:55 CEST 2006
can change the button text thru' the cell value like
dgc = SWF.DataGridViewButtonColumn()
dgc.HeaderText = dgc.Name = "Test"
dgc.Text = "Test"
#dgc.UseColumnTextForButtonValue = True
dgv.Columns.Add(dgc)
drow = dgv.Rows[0]
#drow.Cells["Test"].UseColumnTextForButtonValue = True
drow.Cells["Test"].Value = "Test 1"
>
> Subject: [IronPython] How to conditionally alter
> DataGridViewButtonColumn?
> To: users at lists.ironpython.com
> Message-ID:
> <51c8a7be0608031258q6e78f1avebafe69b6f9d7feb at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'd like to change the text of my button column based on some
criteria. If I
> handle the CellFormatting event, I can get a reference to the Cell,
but how
> do I then get to the Button Control within?
> -------------- next part --------------
More information about the Ironpython-users
mailing list