[Mono-winforms-list] DataGridView binding not working

Ivan N. Zlatev contact at i-nz.net
Fri Dec 5 18:12:36 EST 2008


On Tue, Dec 2, 2008 at 11:53 AM, marcos b <marcosb at internet.com.uy> wrote:

>
> I have a datatable binded to a DataGridView.
> When I add a record in the gridview a row is added to the datatable when
> running in .net environment, but no row is added when running in mono.
> I didn't try, but I supose that edit, and delete actions in the gridview do
> not affect the datatable neither.
>
> Is it a known bug? When is it going to be fixed?
>

Hey,

I have fixed this problem in SVN HEAD, which means it will be fixed in the
next mono 2.x release.


>
> I paste the code of my form below. The form only has a DataGridView named
> dataGridView1 and a button
>
>    public partial class DataGridViewTest : Form
>    {
>        DataTable dt = new DataTable();
>        public DataGridViewTest()
>        {
>            InitializeComponent();
>        }
>
>        private void btnNumberOfRows_Click(object sender, EventArgs e)
>        {
>            MessageBox.Show(dt.Rows.Count.ToString());
>        }
>
>        private void DataGridViewTest_Load(object sender, EventArgs e)
>        {
>            dt.Columns.Add("Key");
>            dt.Columns.Add("Value");
>
>            dt.Rows.Add("1", "one");
>
>            dataGridView1.DataSource = dt;
>        }
>    }
> --
> View this message in context:
> http://www.nabble.com/DataGridView-binding-not-working-tp20780541p20780541.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>



-- 
Kind Regards,
Ivan N. Zlatev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20081205/7b176a21/attachment.html 


More information about the Mono-winforms-list mailing list