c# - Windows Forms: Binding DataGridView RowCount property to a label -


i'm trying bind rowcount property label output current number of rows displayed in datagridview user.

i tried following: lblarticlecount.databindings.add("text", datagrid, "rowcount");

first seems gonna working way want when datagridview gets updated , more or less rows in it, label still stays same. not display new count of rows.

looks i'm on wrong way. how solve it? aim avoid react events set new count label manually. isn't there way?

thanks.

you must implement http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -