Hi,
I have integrated GridView in my application. This grid ist bound to a bindingsource. When my query for the binding source has no datas, then I missing the "new row" line for adding datas. Please see the attached files.
If IsNumeric(RadGridView1.CurrentRow.Cells("ComboNr").Value) Then
Dim iGruppeNr As Integer = grdParameter.CurrentRow.Cells("ComboNr").Value
bsDetekParaCombo.DataSource = (From Combo As tblDetekParaCombo In dbContext.tblDetekParaCombo
Order By Combo.ComboGruppeNr
Where Combo.ComboGruppeNr = iGruppeNr Select Combo).ToList
Else
'Here I will get a count of 0 rows and I missing the new line for adding rows
bsDetekParaCombo.DataSource = (From Combo As tblDetekParaCombo In dbContext.tblDetekParaCombo
Order By Combo.ComboGruppeNr
Where Combo.ComboGruppeNr = -1 Select Combo).ToList
grdCombo.MasterTemplate.Refresh()
End If
What I am doing wrong?
Karim