DefaultValuesNeeded
Windows Forms
1
Posts
1
Posters
0
Views
1
Watching
-
DataGridview Through Coding dataset.... I use the DefaultValuesNeeded event to populate the new rows. This works just fine except for one particular case: If the last existing row and becomes the new row the default values are not effective. If a click a ADD Button, cursor going to New row in cell Position.But i want default values in that Cell..and after cursor move to next cell..then before cell become a readonly property..so this only i want some example codes..pls... This is the code fragment: private void LocationDgrid_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e) { e.Row.Cells["lid"].Value = ????? ---->here what will give?? } So Pls tell me somasundaram