Hi,
I have a simple <Grid> XAML element:
<Grid Name="grdListOfTickets"> <Grid.ColumnDefinitions> <ColumnDefinition Width="125"></ColumnDefinition> <ColumnDefinition Width="125"></ColumnDefinition> <ColumnDefinition Width="95"></ColumnDefinition> <ColumnDefinition Width="90"></ColumnDefinition> <ColumnDefinition Width="70"></ColumnDefinition> <ColumnDefinition Width="60"></ColumnDefinition> <ColumnDefinition Width="100"></ColumnDefinition> <ColumnDefinition Width="122"></ColumnDefinition> <ColumnDefinition Width="130"></ColumnDefinition> <ColumnDefinition Width="113"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition></RowDefinition> </Grid.RowDefinitions>
How do I dinamically add a Row and put a new instance of TextBox inside each cell. I am adding a new row definition like this:
RowDefinition rd = new RowDefinition(); grdListOfTickets.RowDefinitions.Add(rd);
I add child controls like this:
TextBox txt1 = new TextBox();
grdListOfTickets.Children.Add(txt1);
But I don't know how to assign Grid.Row="2" Grid.Row="6" to each new child control ??
Best regards,
Marko.
Hello ,
I am just checking your progress on the issue.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello Marko,
I have been looking into your issues and as to your first question it is not Infragistics related. Since we provide our own grids, you can use one of them in order to get the desired support.
As to your second question, it is duplicated with the question if forum thread: http://news.infragistics.com/forums/p/68259/345735.aspx Please refer to it for more information.
Ekaterina Developer
Support Engineer Infragistics,
Inc. www.infragistics.com/support
Hi can someone make example project out of this:
http://10rem.net/blog/2010/05/09/creating-a-simple-report-writer-in-silverlight-4
cause I don't quite get this just from this code.
Please help.