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: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > 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 -------------- _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
