Oct 25, 2020
Get a home inspection and find out what improvements your home needs.
Jan 10, 2021
zeynel d2c08f164c
Où? me 1 à 15 mars 2021.
Feb 24, 2021
Worried About COVID-19? Here Are 9 Ways to Protect Yourself Now.
Jan 22, 2021
celticchristiancaringnetwork.ga gbeldo 12 mars 2021.
Volunteering is a great way to build your leadership and communication skills and connect with others in your community.
March 13, 2021
A:
I would recommend to use something like this:
public int getRowCount() {
return tableModel.getRowCount();
}
and then:
table.setRowCount(3);
Another way to do this would be:
table.setRowCount(getRowCount());
and then:
public int getRowCount() {
return tableModel.getRowCount();
}
That way, you can always call table.setRowCount(3) without having to make any changes to your class, and you don't need to set it every time you change the table's row count.
A:
This can be a two-way conversation. When you need to set the row count you could ask your view for the desired value (if you have more than one table in your view) and store it as a property in your view. Then set that property from your model.
That way you don't need to change the row count anywhere else in your code.
using System;
using System.Windows.Input;
using Microsoft.Owin;
namespace EventCloud.Hooks.Settings
{
public class SearchFieldValidationEventArgs : EventArgs
{
public ICommand Command { get; set; }
public string DisplayText { get; set; }
public string FailedFieldName { get; set; }
public SearchFieldValidationEventArgs(ICommand command, string displayText, string failedFieldName)
{ be359ba680
Related links:
Comments