Hi Experts,
Here is my requirement. I want to have a grid with one column on windows form. Each row will have one cell with a custom control added to the cell. Initially, my grid should have only one row(with one column having custom control) and on selection/click of the cell, a new row(with one column containing my custom control) should be added automatically.
Request you to provide some example also.
Thanks
Hello,
I believe that there are many ways to achieve this:
To set the style of a column like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button; }
To use an editor:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2361
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10062
You could also set the editor of the column to be 'UltraControlContainerEditor' in which you could put the desired control.
Please take a look at the sample attached in the second article. If you want a specific sample with specific requirements I will be very happy to create it.
Please feel free to let me know if a question about our toolset comes up on your mind.
Why is it that all the links to what appear to be useful articles are always dead-end links. Very frustrating!
Thanks for the reply. Could you please provide some pointers on how to use UltraControlContainerEditor control?