or
Protected Sub ToggleRowSelection(ByVal sender As Object, ByVal e As EventArgs)
CType(CType(sender, CheckBox).NamingContainer, GridItem).Selected = CType(sender, CheckBox).Checked
End Sub
Protected Sub ToggleSelectedState(ByVal sender As Object, ByVal e As EventArgs)
Dim headerCheckBox As CheckBox = CType(sender, CheckBox)
For Each dataItem As GridDataItem In RequestFiles.MasterTableView.Items
CType(dataItem.FindControl("CheckBox1"), CheckBox).Checked = headerCheckBox.Checked
dataItem.Selected = headerCheckBox.Checked
Next
End Sub
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As EventArgs) Handles RequestFiles.PreRender
lblCountRecords.Text = String.Format("<
strong
>{0}</
strong
>", RequestFiles.SelectedItems.Count)
End Sub
<
EditFormSettings
>
<
EditColumn
ButtonType
=
"PushButton"
>
</
EditColumn
>
</
EditFormSettings
>
Can you please provide me with a Grid Demo with features :
As I have seen that when there is a single word entered the columns expand as per as the Content, but when there are multiple words
With spaces in between them I have encountered one problem that some columns expand according to the content and
Some columns do not expand and get shrink.