hi
i am using ultrawingrid. In my initialize row event i added below code
1 . e.Row.Cells(10).Style = ColumnStyle.EditButton
2. e.Row.Cells(10).Style = ColumnStyle.Button
i got a button when the above 2 code executed.
But i want to add image for that button . i used below code. but i didn't get image for that button style.
I have an image in that path.
e.Row.Cells(10).ButtonAppearance.Image = New Bitmap("E:\GMS Budget\GMSBudget\Images\GreenDot.jpg")
e.Row.Cells(10).Appearance.Image = Image.FromFile("E:\GMS Budget\GMSBudget\Images\GreenDot.jpg")
Please reply if you know..
Hi,
I don't see anything wrong with the code you have here. I tried it out and it works just fine for me.
If you are applying the sample image and the same style to the entire column, it would be a lot more efficient to set properties on the column than to set them on each cell, but either way, there's no reason why it would not work.
What version of the grid are you using?
Can you post a small sample project demonstrating this behavior?