Click here to Skip to main content
15,887,027 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAJAX doubt Pin
saravanan0518-Jun-07 20:09
saravanan0518-Jun-07 20:09 
AnswerRe: AJAX doubt Pin
Sathesh Sakthivel18-Jun-07 20:12
Sathesh Sakthivel18-Jun-07 20:12 
AnswerRe: AJAX doubt Pin
Christian Graus18-Jun-07 20:33
protectorChristian Graus18-Jun-07 20:33 
QuestionHow to handle events of dynamic controls Pin
Sapan Roy18-Jun-07 20:09
Sapan Roy18-Jun-07 20:09 
AnswerRe: How to handle events of dynamic controls Pin
Sandeep Akhare18-Jun-07 20:52
Sandeep Akhare18-Jun-07 20:52 
Questionhow to show gridview with out data Pin
findtango18-Jun-07 19:56
findtango18-Jun-07 19:56 
AnswerRe: how to show gridview with out data Pin
N a v a n e e t h18-Jun-07 20:04
N a v a n e e t h18-Jun-07 20:04 
AnswerRe: how to show gridview with out data Pin
manojch218-Jun-07 20:33
manojch218-Jun-07 20:33 
Try This

Protected Sub ItemDB(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)

Dim dv As DataView = CType(DataGrid1.DataSource, DataView)

Dim drv As DataRowView = CType(e.Item.DataItem, DataRowView)

If dv.Table.Rows.Count = 0 Then

'By default the Datagrid Header is shown in case there is no Data Avaiable

'So in case of No Data found

'Check the ListItemType.Header

If e.Item.ItemType = ListItemType.Header Then

Dim i As Integer = e.Item.Cells.Count



'Assign "No Search result Found" in one of the cells of DataGrid

e.Item.Cells(0).Text = "No Search Results Found"



'Remove Rest of the empty cells from Datagrid

Dim j As Integer

For j = i - 1 To 1 Step -1

e.Item.Cells.RemoveAt(j)

Next

End If

End If

End Sub '


manojchilhate

Questionwriting in texbox thru coding is a problem Pin
Hemant Garg18-Jun-07 19:37
Hemant Garg18-Jun-07 19:37 
AnswerRe: writing in texbox thru coding is a problem Pin
RepliCrux18-Jun-07 19:43
RepliCrux18-Jun-07 19:43 
GeneralRe: writing in texbox thru coding is a problem Pin
Hemant Garg18-Jun-07 19:50
Hemant Garg18-Jun-07 19:50 
GeneralRe: writing in texbox thru coding is a problem Pin
RepliCrux18-Jun-07 19:56
RepliCrux18-Jun-07 19:56 
AnswerRe: writing in texbox thru coding is a problem Pin
N a v a n e e t h18-Jun-07 19:53
N a v a n e e t h18-Jun-07 19:53 
AnswerRe: writing in texbox thru coding is a problem Pin
Sathesh Sakthivel18-Jun-07 19:54
Sathesh Sakthivel18-Jun-07 19:54 
AnswerRe: writing in texbox thru coding is a problem Pin
Venkatesh Mookkan18-Jun-07 20:13
Venkatesh Mookkan18-Jun-07 20:13 
AnswerRe: writing in texbox thru coding is a problem Pin
Sylvester george18-Jun-07 23:25
Sylvester george18-Jun-07 23:25 
QuestionResponse from Class Library Pin
jain.ashish2118-Jun-07 19:21
jain.ashish2118-Jun-07 19:21 
AnswerRe: Response from Class Library Pin
Not Active18-Jun-07 19:28
mentorNot Active18-Jun-07 19:28 
GeneralRe: Response from Class Library Pin
jain.ashish2118-Jun-07 20:14
jain.ashish2118-Jun-07 20:14 
AnswerRe: Response from Class Library Pin
Venkatesh Mookkan18-Jun-07 19:33
Venkatesh Mookkan18-Jun-07 19:33 
GeneralRe: Response from Class Library Pin
Not Active19-Jun-07 1:59
mentorNot Active19-Jun-07 1:59 
QuestionHow to add Controls to Gridview at runtime Pin
raju124818-Jun-07 19:18
raju124818-Jun-07 19:18 
AnswerRe: Please Help Me Pin
Sathesh Sakthivel18-Jun-07 19:21
Sathesh Sakthivel18-Jun-07 19:21 
GeneralRe: Please Help Me Pin
raju124818-Jun-07 19:48
raju124818-Jun-07 19:48 
GeneralRe: Please Help Me Pin
Sathesh Sakthivel18-Jun-07 19:50
Sathesh Sakthivel18-Jun-07 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.