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.
Thanks for the reply. Could you please provide some pointers on how to use UltraControlContainerEditor control?
You could see the source code for the samples in either Visual Basic or C-Sharp(C#) like in the following picture:
Please feel free to let me know if I misunderstood you or if you have any other questions.
Thanks for your detailed explanation. This is what i am looking for. I have samples installed in my machine. Could you please locate me the source code for this?
Once again Thanks.
You could see a sample regarding this in our 'Windows Forms Feature Browser'.
If you have this installed(if you have marked 'Samples' when installing Net Advantage), you could run it from 'Start Menu' -> 'All Programs' -> 'Infragistics' -> 'Windows Forms' -> 'Samples' -> 'Samples (local)'.
When it loads, please navigate to the 'Commands and Editors' tab = > 'WinEditors' and then 'Launch' the 'ControlContainerEditor' sample. Or you can type in the 'Search:' "'ControlContainerEditor'".
Please do not hesitate to contact us if you need any additional assistance.