I'm having difficulty with obtaining VisibleRowCount in my gridview. I have this particular gridview which I populate via
NewButton/>
, inserting a new row, then populating each column, then attempting to do a save.
However whenever I do a save,
grdView.VisibleRowCount
always returns zero. Even though the grid is populated, with clearly visible data.
Note: this gridview contains KeyFieldName="xxx", which I do not populate, when inserting a new row, via the Newbutton/>. I intend to populate this value in my save routine once I am able to access the data in the gridView. Might the fact be that this key field not being populated in the gridview be the problem? Is there a way to default that value via the NewButton/> function?
Thanks for any help.